mirror of
https://github.com/git/git.git
synced 2026-01-17 14:21:57 +00:00
Merge pull request #1032 from max630/gitgui_GIT_GIT_unset
git-gui: correctly restore GIT_DIR after invoking commands
This commit is contained in:
@@ -2212,6 +2212,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user