Skip to content

Commit

Permalink
Merge pull request #1032 from max630/gitgui_GIT_GIT_unset
Browse files Browse the repository at this point in the history
git-gui: correctly restore GIT_DIR after invoking commands
  • Loading branch information
dscho committed Feb 4, 2017
2 parents 7382175 + 848db13 commit e74a657
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git-gui/git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2209,6 +2209,8 @@ proc do_gitk {revs {is_submodule false}} {
if {$old_GIT_DIR ne {}} {
set env(GIT_DIR) $old_GIT_DIR
} else {
unset env(GIT_DIR)
}
cd $pwd
Expand Down

0 comments on commit e74a657

Please sign in to comment.