Don't show repository missing error when launching without arguments

This commit is contained in:
Jesse van den Kieboom 2010-05-29 13:38:42 +02:00
parent 67d1bbb95d
commit e67b0ac77f
2 changed files with 2 additions and 2 deletions

View file

@ -1379,7 +1379,7 @@ load_repository(GitgWindow *window, gchar const *path, gint argc, gchar const **
gitg_commit_view_set_repository(window->priv->commit_view, window->priv->repository);
gitg_revision_view_set_repository(window->priv->revision_view, window->priv->repository);
if (path || argc > 1 || usewd)
if (path || argc > 1)
{
handle_no_gitdir(window);
}

View file

@ -194,7 +194,7 @@ main(int argc, char **argv)
gitg_window_load_repository(window, argc > 1 ? argv[1] : NULL, argc - 2, argc > 1 ? (gchar const **)&argv[2] : NULL, select_sha1);
if (commit_mode)
if (commit_mode && gitg_window_get_repository (window) != NULL)
gitg_window_show_commit(window);
gtk_main();