aboutsummaryrefslogtreecommitdiff
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-25 16:42:00 -0700
commitcd846aa183a01b8d881122a938f93ba38bc12629 (patch)
tree0057ca4dbce31bc0efb2b1494e9bc5f9845d0293
parented7b603381a57f706d758cf5a2f2ce604ef8c825 (diff)
downloadgit-cd846aa183a01b8d881122a938f93ba38bc12629.tar.gz
git-cd846aa183a01b8d881122a938f93ba38bc12629.tar.xz
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>
-rwxr-xr-xgit-gui.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 88d1025dd..09b27203d 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