зеркало из https://github.com/github/ruby.git
Chomp a newline from the branch name
This commit is contained in:
Родитель
7790b610b8
Коммит
d47cd75b4f
|
@ -392,6 +392,7 @@ class VCS
|
|||
changed = changed[0, last.size]
|
||||
modified = log[/^Date:\s+(.*)/, 1]
|
||||
branch = cmd_read_at(srcdir, [gitcmd + %W[symbolic-ref --short HEAD]])
|
||||
branch.chomp!
|
||||
title = cmd_read_at(srcdir, [gitcmd + %W[log --format=%s -n1 FETCH_HEAD..HEAD]])
|
||||
title = nil if title.empty?
|
||||
[last, changed, modified, branch, title]
|
||||
|
|
Загрузка…
Ссылка в новой задаче