From 826e22e7cc005ca1f53dbd8c1de21e1d158d5b28 Mon Sep 17 00:00:00 2001 From: Joan Goyeau Date: Mon, 24 Jul 2017 13:57:21 +0100 Subject: [PATCH] Fix JGit set core.fileMode to false by default instead of true for non Windows OS. Bug: 519887 Change-Id: I4ae0d6783a9dc62f78ead54ddd1ab2b5b66a811c Signed-off-by: Joan Goyeau --- org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java index 0780d2b56..2d58a0241 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java @@ -188,7 +188,7 @@ public class FS_POSIX extends FS { if (!isFile(f)) return false; if (!canExecute) - return f.setExecutable(false); + return f.setExecutable(false, false); try { Path path = f.toPath();