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 <robin.rosenberg@dewire.com>
This commit is contained in:
Robin Rosenberg 2010-02-04 07:17:18 +01:00
parent 76b9823005
commit 23827fefc0
1 changed files with 1 additions and 0 deletions

View File

@ -286,6 +286,7 @@ public void create(boolean bare) throws IOException {
if (bare)
cfg.setBoolean("core", null, "bare", true);
cfg.setBoolean("core", null, "logallrefupdates", !bare);
cfg.setBoolean("core", null, "autocrlf", false);
cfg.save();
}