Signed-off-by: Shawn O. Pearce <spearce@xxxxxxxxxxx> --- .../src/org/spearce/jgit/lib/Repository.java | 5 ++--- .../src/org/spearce/jgit/lib/RepositoryConfig.java | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java b/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java index 1076fe1..98a276b 100644 --- a/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java +++ b/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java @@ -166,9 +166,8 @@ public void create(boolean bare) throws IOException { RepositoryConfig cfg = getConfig(); cfg.create(); - if (bare) { - cfg.setString("core", null, "bare", "true"); - } + if (bare) + cfg.setBoolean("core", null, "bare", true); cfg.save(); } diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java b/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java index 85e8738..c80db00 100644 --- a/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java +++ b/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java @@ -203,8 +203,8 @@ private String getUserEmailInternal(String gitVariableKey) { public void create() { clear(); setFileRead(true); - setString("core", null, "repositoryformatversion", "0"); - setString("core", null, "filemode", "true"); + setInt("core", null, "repositoryformatversion", 0); + setBoolean("core", null, "filemode", true); core = new CoreConfig(this); transfer = new TransferConfig(this); -- 1.6.4.rc2.216.g769fa -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html