Previously we crashed. Now we encode using UTF-8. This may possibly change the encoding in the packed-refs file as we try to be smart about reading the file when converting to Java strings. Signed-off-by: Robin Rosenberg <robin.rosenberg@xxxxxxxxxx> --- .../src/org/spearce/jgit/lib/RefWriter.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/RefWriter.java b/org.spearce.jgit/src/org/spearce/jgit/lib/RefWriter.java index 2d39713..0a1bac8 100644 --- a/org.spearce.jgit/src/org/spearce/jgit/lib/RefWriter.java +++ b/org.spearce.jgit/src/org/spearce/jgit/lib/RefWriter.java @@ -145,7 +145,7 @@ public void writePackedRefs() throws IOException { w.write('\n'); } } - writeFile(Constants.PACKED_REFS, Constants.encodeASCII(w.toString())); + writeFile(Constants.PACKED_REFS, Constants.encode(w.toString())); } /** -- 1.6.3.dirty -- 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