Code

git-gui: Warn Cygwin users about possible environment issues.
authorShawn O. Pearce <spearce@spearce.org>
Tue, 21 Nov 2006 20:28:14 +0000 (15:28 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 21 Nov 2006 20:28:14 +0000 (15:28 -0500)
commit1d8b3cbf2841612791178853efbfe9ba60b48f2b
tree2be9369ff44241e9adcce6f23e44e6ce8e6c5ab5
parent3add5d3517972f6407da450fcd7dff08187cca34
git-gui: Warn Cygwin users about possible environment issues.

Because the Tcl binary distributed with Cygwin tends to not pass along
its own environment (the env array) to its children, its unlikely that
any Git commands spawned by git-gui will receive the same environment
variables that git-gui itself received from the shell which started it.

If the user is counting on environment variables to pass down, like say
GIT_INDEX_FILE, they may not, so we warn them during git-gui startup
that things may not work out as the user intended.  Perhaps one day
when git-gui and git are running on native Windows (rather than through
the Cygwin emulation layers) things will work better.

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