-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git-gui: correctly restore GIT_DIR after invoking commands #1032
Conversation
0742cc2
to
66e912a
Compare
looks sensible to me. |
The patch is not directly applicable to that repository, as well as to the main |
@@ -2203,6 +2203,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) |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
@@ -2239,6 +2241,8 @@ proc do_git_gui {} { | |||
|
|||
if {$old_GIT_DIR ne {}} { | |||
set env(GIT_DIR) $old_GIT_DIR | |||
} else { | |||
unset env(GIT_DIR) |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
git-gui tries to temporary set GIT_DIR for starting gitk and restore it back after they are started. But in case of GIT_DIR which was not set prior to invocation it is not unset after it. This affects commands which can be later started from that git gui, for example "Git Bash". Fix it. Signed-off-by: Max Kirillov <[email protected]>
66e912a
to
5bd3bbf
Compare
Thank you! |
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
Git GUI will [no longer set `GIT_DIR` when calling Git Bash after visualizing the commit history](git-for-windows/git#1032). Signed-off-by: Johannes Schindelin <[email protected]>
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui: correctly restore GIT_DIR after invoking commands
git-gui tries to temporary set GIT_DIR for running commands
and restore it back after it started. But in case of GIT_DIR which was
not set prior to invocation it is not unset after it.
Fix it.
Signed-off-by: Max Kirillov [email protected]