Skip to content

Commit 36956b3

Browse files
committed
Merge pull request #1032 from max630/gitgui_GIT_GIT_unset
git-gui: correctly restore GIT_DIR after invoking commands
2 parents 6023e0a + 660bc58 commit 36956b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git-gui/git-gui.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,6 +2209,8 @@ proc do_gitk {revs {is_submodule false}} {
22092209
22102210
if {$old_GIT_DIR ne {}} {
22112211
set env(GIT_DIR) $old_GIT_DIR
2212+
} else {
2213+
unset env(GIT_DIR)
22122214
}
22132215
cd $pwd
22142216

0 commit comments

Comments
 (0)