author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | |
Sat, 23 Jan 2010 23:59:00 +0000 (00:59 +0100) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 24 Jan 2010 00:02:16 +0000 (16:02 -0800) | ||
commit | a9fa11fe5bd5978bb175b3b5663f6477a345d428 | |
tree | 5230704b356128b506b5ccea3180125515d489bb | tree | snapshot |
parent | 3748b03d92c3dcefcc65739f73ae0a1382a7da20 | commit | diff |
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>
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>
git-gui.sh | diff | blob | history |