mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-01 01:18:22 +01:00
Don't retain "\r\n" when summarizing commits
Auditors: vrana
This commit is contained in:
parent
b32bfb6541
commit
2b10173a03
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ final class PhabricatorRepositoryCommitData extends PhabricatorRepositoryDAO {
|
|||
public function getSummary() {
|
||||
$message = $this->getCommitMessage();
|
||||
|
||||
$summary = phutil_split_lines($message);
|
||||
$summary = phutil_split_lines($message, $retain_endings = false);
|
||||
$summary = head($summary);
|
||||
$summary = phutil_utf8_shorten($summary, self::SUMMARY_MAX_LENGTH);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue