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 3f99057f9..2cf759c5f 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 { 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(); }