summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2012-08-26 18:34:22 -0400
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>2012-08-26 18:34:22 -0400
commit9004ed6e746c38be5f65f1e7596f66e7e03733c0 (patch)
tree04edc22c74134021a3e3206337ef25251d3a8cb9 /org.eclipse.jgit
parentd0433a9bab168eb3c8f484ccb97222b65ca1d10e (diff)
parentdccad56c9a8714398f813f953704a52d3aa3c0cc (diff)
downloadjgit-9004ed6e746c38be5f65f1e7596f66e7e03733c0.tar.gz
jgit-9004ed6e746c38be5f65f1e7596f66e7e03733c0.zip
Merge "Set core.precomposeunicode to true when creating repository on Mac"
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java3
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileRepository.java4
2 files changed, 7 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java
index 237fb66d0a..aaa427bae6 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java
@@ -178,4 +178,7 @@ public class ConfigConstants {
/** The "indexversion" key */
public static final String CONFIG_KEY_INDEXVERSION = "indexversion";
+
+ /** The "precomposeunicode" key */
+ public static final String CONFIG_KEY_PRECOMPOSEUNICODE = "precomposeunicode";
}
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileRepository.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileRepository.java
index 7934e7f9be..33a51269de 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileRepository.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileRepository.java
@@ -280,6 +280,10 @@ public class FileRepository extends Repository {
ConfigConstants.CONFIG_KEY_BARE, true);
cfg.setBoolean(ConfigConstants.CONFIG_CORE_SECTION, null,
ConfigConstants.CONFIG_KEY_LOGALLREFUPDATES, !bare);
+ if (SystemReader.getInstance().isMacOS())
+ // Java has no other way
+ cfg.setBoolean(ConfigConstants.CONFIG_CORE_SECTION, null,
+ ConfigConstants.CONFIG_KEY_PRECOMPOSEUNICODE, true);
cfg.save();
}