Merge "Commit message may not necessarily be in UTF-8"

This commit is contained in:
Shawn Pearce 2012-12-04 10:00:30 -05:00 committed by Gerrit Code Review @ Eclipse.org
commit e9a1df6c56
1 changed files with 2 additions and 2 deletions

View File

@ -278,8 +278,8 @@ public RebaseResult call() throws GitAPIException, NoHeadException,
sb.append(" "); sb.append(" ");
sb.append(step.commit.name()); sb.append(step.commit.name());
sb.append(" "); sb.append(" ");
sb.append(new String(step.shortMessage, sb.append(RawParseUtils.decode(step.shortMessage)
Constants.CHARACTER_ENCODING).trim()); .trim());
fw.write(sb.toString()); fw.write(sb.toString());
fw.newLine(); fw.newLine();
} }