git-gui: Protect ourselves from funny GIT_DIR/working directory setups.
authorShawn O. Pearce <spearce@spearce.org>
Thu, 16 Nov 2006 03:45:33 +0000 (22:45 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 18 Nov 2006 04:56:15 +0000 (23:56 -0500)
commitdbccbbda4f4c049552495a87b1747b1b2a1e2823
tree7f0c642f30ca2b2c650fad247a6d8d094fab6b44
parent4aca740b3915b35d7fa1707be79b268b0cc94123
git-gui: Protect ourselves from funny GIT_DIR/working directory setups.

Since we have some serious problems with the GIT_DIR environment variable
on Windows we cannot let the user use a non-standard GIT_DIR with their
working directory.

So require that the GIT_DIR name is actually ".git", that it exists,
and that its parent directory is our working directory.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui