mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-27 11:59:17 +00:00
Don't show repository missing error when launching without arguments
This commit is contained in:
parent
67d1bbb95d
commit
e67b0ac77f
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue