From 23827fefc0019f58b3abe7051cc95f0d7e7adf73 Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Thu, 4 Feb 2010 07:17:18 +0100 Subject: [PATCH] Intermediate workaround for JGit's lack of core.autocrlf support Windows users by default have core.autocrlf set to true. JGit does not recognize the flags and thus works as if it is set. In order to make JGit more compatible with msysgit we set the flag to false in repositories that JGit creates. Bug: 301775 Change-Id: I7ea462fe3516e5060b87aa1f7ed63689936830c2 Signed-off-by: Robin Rosenberg --- org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java index 45eda052ad..c00d81dcd1 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java @@ -286,6 +286,7 @@ public class Repository { if (bare) cfg.setBoolean("core", null, "bare", true); cfg.setBoolean("core", null, "logallrefupdates", !bare); + cfg.setBoolean("core", null, "autocrlf", false); cfg.save(); } -- 2.39.5