diff options
author | Lluis Sanchez Gual <lluis@novell.com> | 2010-11-30 23:09:03 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@novell.com> | 2010-11-30 23:09:03 +0300 |
commit | db64217f023c9bcf250a2efad80af1bb1d8a5f9b (patch) | |
tree | f7702345869c46556d7135819e3862dfc13bfc9b | |
parent | 5f629f6b3d01f6a1f3922d9b28fb45b5e5c4537c (diff) |
Updated from NGit.
-rwxr-xr-x | main/contrib/Sharpen/Sharpen/FilePath.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/contrib/Sharpen/Sharpen/FilePath.cs b/main/contrib/Sharpen/Sharpen/FilePath.cs index 7b675a50c5..95ac63b39d 100755 --- a/main/contrib/Sharpen/Sharpen/FilePath.cs +++ b/main/contrib/Sharpen/Sharpen/FilePath.cs @@ -306,9 +306,9 @@ namespace Sharpen // Don't change the case of this method, since ngit does reflection on it public bool canExecute () { - if (!File.Exists (path)) - return false; UnixFileInfo fi = new UnixFileInfo (path); + if (!fi.Exists) + return false; return 0 != (fi.FileAccessPermissions & (FileAccessPermissions.UserExecute | FileAccessPermissions.GroupExecute | FileAccessPermissions.OtherExecute)); } |