From: Giuseppe Bilotta Date: Sat, 23 Jan 2010 23:59:00 +0000 (+0100) Subject: git-gui: set GIT_DIR and GIT_WORK_TREE after setup X-Git-Tag: v1.7.0-rc2^2~11 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a9fa11fe5bd5978bb175b3b5663f6477a345d428?hp=a9fa11fe5bd5978bb175b3b5663f6477a345d428 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 Signed-off-by: Shawn O. Pearce ---