|
|
|
@ -59,6 +59,7 @@ import org.eclipse.jgit.lib.ObjectInserter;
|
|
|
|
|
import org.eclipse.jgit.lib.ObjectReader; |
|
|
|
|
import org.eclipse.jgit.lib.PersonIdent; |
|
|
|
|
import org.eclipse.jgit.util.RawParseUtils; |
|
|
|
|
import org.eclipse.jgit.util.StringUtils; |
|
|
|
|
|
|
|
|
|
/** A commit reference to a commit in the DAG. */ |
|
|
|
|
public class RevCommit extends RevObject { |
|
|
|
@ -421,7 +422,7 @@ public class RevCommit extends RevObject {
|
|
|
|
|
final int msgE = RawParseUtils.endOfParagraph(raw, msgB); |
|
|
|
|
String str = RawParseUtils.decode(enc, raw, msgB, msgE); |
|
|
|
|
if (hasLF(raw, msgB, msgE)) |
|
|
|
|
str = str.replace('\n', ' '); |
|
|
|
|
str = StringUtils.replaceLineBreaksWithSpace(str); |
|
|
|
|
return str; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|