Skip to content

Commit cd846aa

Browse files
jlehmannspearce
authored andcommitted
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 <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent ed7b603 commit cd846aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-gui.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,7 @@ set current_branch {}
11341134
set is_detached 0
11351135
set current_diff_path {}
11361136
set is_3way_diff 0
1137+
set is_submodule_diff 0
11371138
set is_conflict_diff 0
11381139
set selected_commit_type new
11391140
set diff_empty_count 0

0 commit comments

Comments
 (0)