Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] FileMode values failing self-tests on NonStop

On Wed, Feb 25, 2015 at 9:52 PM, Randall S. Becker <rsbecker@xxxxxxxxxxxxx> wrote:
Running org.eclipse.jgit.api.AddCommandTest
Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 62.354 sec - in org.eclipse.jgit.api.AddCommandTest
... other than GitConstructionTest,PushCommandTest (also failed before the change below), Core passes.

On to the next battle :), which I will post separately after investigation.

diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java
index 9e5b221..af88b9f 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java
@@ -337,6 +337,7 @@ public static void createNewFile(File f) throws IOException
{
                if (!f.createNewFile())
                        throw new IOException(MessageFormat.format(
                                        JGitText.get().createNewFileFailed, f));
+               f.setExecutable(false,false);
        }

:-)

please push contributions to Gerrit following

-Matthias 

Back to the top