Use the user's Cygwin home directory if invoked by a Cygwin shell
commit8728bff1987cc7fc96a998dbd97e130a6570895e
authorShawn O. Pearce <spearce@spearce.org>
Sun, 27 Apr 2008 19:19:32 +0000 (27 15:19 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 11 May 2008 05:16:34 +0000 (11 01:16 -0400)
tree41ffbc085b552a9eff256a68fa90b72aa7fb40aa
parent30dd44e7197a10f768dfeb22b67c767fda24a5d4
Use the user's Cygwin home directory if invoked by a Cygwin shell

If we are running within a Cygwin based environment and the user
has given us a HOME environment variable that points to their
Cygwin home directory and they have given us cygpath.exe in PATH
we should translate their Cygwin based HOME directory into a form
that the Windows JRE can read, and use that rather than their own
Windows home directory.  This is based under the assumption that
anyone using Cygwin with jgit is most likely using a Cygwin based
Git implementation ad thus will want jgit to play alongside it as
much as possible.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java
org.spearce.jgit/src/org/spearce/jgit/util/FS.java
org.spearce.jgit/src/org/spearce/jgit/util/FS_Win32_Cygwin.java