diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-01-24 00:59:00 +0100 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2010-01-23 16:02:16 -0800 |
commit | a9fa11fe5bd5978bb175b3b5663f6477a345d428 (patch) | |
tree | 5230704b356128b506b5ccea3180125515d489bb /windows | |
parent | git-gui: update shortcut tools to use _gitworktree (diff) | |
download | tgif-a9fa11fe5bd5978bb175b3b5663f6477a345d428.tar.xz |
git-gui: set GIT_DIR and GIT_WORK_TREE after setup
Rather than juggling with the env var GIT_DIR around the invocation of
gitk, set it and GIT_WORK_TREE after finishing setup, ensuring that any
external tool works with the setup we're running with.
This also allows us to remove a couple of conditionals when running gitk
or git gui in a submodule, as we know that the variables are present and
have to be unset and reset before and after the invocation.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'windows')
0 files changed, 0 insertions, 0 deletions