[gitg] Don't show repository missing error when launching without arguments
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Don't show repository missing error when launching without arguments
- Date: Sat, 29 May 2010 11:39:00 +0000 (UTC)
commit e67b0ac77fdc41b7a90bb7e89c79a6d455602931
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Sat May 29 13:38:42 2010 +0200
Don't show repository missing error when launching without arguments
gitg/gitg-window.c | 2 +-
gitg/gitg.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gitg/gitg-window.c b/gitg/gitg-window.c
index bd19b2f..fb0d6dd 100644
--- a/gitg/gitg-window.c
+++ b/gitg/gitg-window.c
@@ -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);
}
diff --git a/gitg/gitg.c b/gitg/gitg.c
index 81b929e..80d20b9 100644
--- a/gitg/gitg.c
+++ b/gitg/gitg.c
@@ -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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]