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>
1 file changed
tree: c88551a69ad709ad787b769e019b23152ec03de6
  1. lib/
  2. macosx/
  3. po/
  4. windows/
  5. .gitignore
  6. git-gui.sh
  7. GIT-VERSION-GEN
  8. Makefile