]> source.dussan.org Git - jgit.git/commitdiff
Commit message may not necessarily be in UTF-8 78/8878/1
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Tue, 27 Nov 2012 07:34:40 +0000 (08:34 +0100)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Tue, 27 Nov 2012 07:34:40 +0000 (08:34 +0100)
Trying different encoding makes presentation nicer
to user.

Change-Id: I2d2c2a95d0b5cd709855d7a67cbc247478434d2f

org.eclipse.jgit/src/org/eclipse/jgit/api/RebaseCommand.java

index 3f99057f9fbcc5b3a8bddb4597e40bf92d1f77a4..2cf759c5ff28f81e2570a32017ae142732581bf0 100644 (file)
@@ -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();
                                        }