ruby-changes:55570
From: Nobuyoshi <ko1@a...>
Date: Sun, 28 Apr 2019 10:47:23 +0900 (JST)
Subject: [ruby-changes:55570] Nobuyoshi Nakada:d47cd75b4f (trunk): Chomp a newline from the branch name
https://git.ruby-lang.org/ruby.git/commit/?id=d47cd75b4f From d47cd75b4fead0cfc5fdb59c48d5d822ffe3382d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 28 Apr 2019 10:41:11 +0900 Subject: Chomp a newline from the branch name diff --git a/tool/vcs.rb b/tool/vcs.rb index cf8a710..3eb6389 100644 --- a/tool/vcs.rb +++ b/tool/vcs.rb @@ -392,6 +392,7 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/vcs.rb#L392 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] -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/