summaryrefslogtreecommitdiffstats
path: root/git-gui.sh
diff options
context:
space:
mode:
authorJens Lehmann <Jens.Lehmann@web.de>2009-09-24 18:56:28 +0200
committerShawn O. Pearce <spearce@spearce.org>2009-09-26 01:42:00 +0200
commitcd846aa183a01b8d881122a938f93ba38bc12629 (patch)
tree0057ca4dbce31bc0efb2b1494e9bc5f9845d0293 /git-gui.sh
parentgit-gui: store wm state and fix wm geometry (diff)
downloadgit-cd846aa183a01b8d881122a938f93ba38bc12629.tar.xz
git-cd846aa183a01b8d881122a938f93ba38bc12629.zip
git-gui: fix use of uninitialized variable
This fixes a bug introduced by the "display summary when showing diff of a submodule" patch. It lead to a "no such variable" error when opening the diff context menu while no diff was shown. Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 88d1025dd0..09b27203db 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -1134,6 +1134,7 @@ set current_branch {}
set is_detached 0
set current_diff_path {}
set is_3way_diff 0
+set is_submodule_diff 0
set is_conflict_diff 0
set selected_commit_type new
set diff_empty_count 0