瀏覽代碼

Commit message may not necessarily be in UTF-8

Trying different encoding makes presentation nicer
to user.

Change-Id: I2d2c2a95d0b5cd709855d7a67cbc247478434d2f
tags/v2.2.0.201212191850-r
Robin Rosenberg 11 年之前
父節點
當前提交
257f3fe4a1
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      org.eclipse.jgit/src/org/eclipse/jgit/api/RebaseCommand.java

+ 2
- 2
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();
}

Loading…
取消
儲存