Skip to content

Commit f4f0dd2

Browse files
dschoGit for Windows Build Agent
authored andcommitted
Merge pull request #1032 from max630/gitgui_GIT_GIT_unset
git-gui: correctly restore GIT_DIR after invoking commands
2 parents a2d0378 + 382e6b8 commit f4f0dd2

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
@@ -2214,6 +2214,8 @@ proc do_gitk {revs {is_submodule false}} {
22142214
22152215
if {$old_GIT_DIR ne {}} {
22162216
set env(GIT_DIR) $old_GIT_DIR
2217+
} else {
2218+
unset env(GIT_DIR)
22172219
}
22182220
cd $pwd
22192221

0 commit comments

Comments
 (0)