summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2012-11-27 08:34:40 +0100
committerRobin Rosenberg <robin.rosenberg@dewire.com>2012-11-27 08:34:40 +0100
commit257f3fe4a1b9e450b2f665b5f0ed09a3ab3839b9 (patch)
tree55da79633712b9ffeaa117f68fa68f38fea361b7
parent8b06c46e301e4b9df4b2f47d1e67fb4ab319ded5 (diff)
downloadjgit-257f3fe4a1b9e450b2f665b5f0ed09a3ab3839b9.tar.gz
jgit-257f3fe4a1b9e450b2f665b5f0ed09a3ab3839b9.zip
Commit message may not necessarily be in UTF-8
Trying different encoding makes presentation nicer to user. Change-Id: I2d2c2a95d0b5cd709855d7a67cbc247478434d2f
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/RebaseCommand.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/RebaseCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/RebaseCommand.java
index 3f99057f9f..2cf759c5ff 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/RebaseCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/RebaseCommand.java
@@ -278,8 +278,8 @@ public class RebaseCommand extends GitCommand<RebaseResult> {
sb.append(" ");
sb.append(step.commit.name());
sb.append(" ");
- sb.append(new String(step.shortMessage,
- Constants.CHARACTER_ENCODING).trim());
+ sb.append(RawParseUtils.decode(step.shortMessage)
+ .trim());
fw.write(sb.toString());
fw.newLine();
}