author | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 21 May 2008 20:40:10 +0000 (16:40 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 22 May 2008 12:34:00 +0000 (08:34 -0400) | ||
commit | 7f83aa2d3df0623984e265052f96e7172e3efbeb | |
tree | c88551a69ad709ad787b769e019b23152ec03de6 | tree | snapshot |
parent | 16dd62ac4de10c9ae27d29bb1c906ad97ac8908f | commit | diff |
git-gui: Handle workdir detection when CYGWIN=nowinsymlinks
If the user has put nowinsymlinks into their CYGWIN environment
variable any symlinks created by a Cygwin process (e.g. ln -s)
will not have the ".lnk" suffix. In this case workdir is still
a workdir, but our detection of looking for "info.lnk" fails
as the symlink is actually a normal file called "info".
Instead we just always use Cygwin's test executable to see if
info/exclude is a file. If it is, we assume from there on it
can be read by git-ls-files --others and is thus safe to use
on the command line.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
If the user has put nowinsymlinks into their CYGWIN environment
variable any symlinks created by a Cygwin process (e.g. ln -s)
will not have the ".lnk" suffix. In this case workdir is still
a workdir, but our detection of looking for "info.lnk" fails
as the symlink is actually a normal file called "info".
Instead we just always use Cygwin's test executable to see if
info/exclude is a file. If it is, we assume from there on it
can be read by git-ls-files --others and is thus safe to use
on the command line.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | diff | blob | history |