git-gui: Handle failure of core.worktree to identify the working directory.
authorPat Thoyts <patthoyts@users.sourceforge.net>
Sat, 10 Jul 2010 22:40:59 +0000 (23:40 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Sat, 10 Jul 2010 22:40:59 +0000 (23:40 +0100)
commit13a3d637b2d83fceb432fe7b9e21f8c4d882fa41
treefdccc9ad85605d84ea4cbf69ca2daf93f66ee10c
parent2a9edd03057287cf7d69e5021eda2e0122684c92
git-gui: Handle failure of core.worktree to identify the working directory.

Commit 21985a11 'git-gui: handle non-standard worktree locations' attempts
to use either GIT_WORK_TREE or core.worktree to set the _gitworktree
variable but these may not be set which leads to a failure to launch
gitk to review history. Use _gitdir to set the location for a standard
git layout where the parent of the .git directory is the working tree.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
git-gui.sh