From: Christian Walde Date: Sun, 29 May 2011 21:34:10 +0000 (+0200) Subject: Win32 does not have reliable symlinks X-Git-Tag: 0.003005~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FGitalist.git;a=commitdiff_plain;h=96410fb53cae4b097d227548ef75600f5d8f19b4 Win32 does not have reliable symlinks --- diff --git a/lib/Gitalist/Git/Object.pm b/lib/Gitalist/Git/Object.pm index 7596e89..7d46632 100644 --- a/lib/Gitalist/Git/Object.pm +++ b/lib/Gitalist/Git/Object.pm @@ -97,7 +97,7 @@ class Gitalist::Git::Object with Gitalist::Git::Serializable is dirty { return 'm---------'; } elsif (S_ISDIR($mode & S_IFMT)) { return 'drwxr-xr-x'; - } elsif (S_ISLNK($mode)) { + } elsif ($^O ne 'MSWin32' and S_ISLNK($mode)) { # this is ENOLINKS country, we can't stop here! return 'lrwxrwxrwx'; } elsif (S_ISREG($mode)) { # git cares only about the executable bit