diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-04-22 21:44:44 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-04-22 21:45:13 +0900 |
commit | 87261cf59f4914801512cf0f3f1332f0c94b6952 (patch) | |
tree | 3f9a7445dcef935b422862831e30b6a5058d145b | |
parent | 5da52d1210625fb00acd573b3f32281b4bde1730 (diff) | |
download | ruby-87261cf59f4914801512cf0f3f1332f0c94b6952.tar.gz |
Omit last_commit=RUBY_LAST_COMMIT_TITLE without local commits
-rw-r--r-- | tool/vcs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb index d63336ae60..6b72312801 100644 --- a/tool/vcs.rb +++ b/tool/vcs.rb @@ -383,7 +383,7 @@ class VCS changed = log[/\Acommit (\h+)/, 1] modified = log[/^Date:\s+(.*)/, 1] branch = cmd_read_at(srcdir, [gitcmd + %W[symbolic-ref HEAD]])[%r'\A(?:refs/heads/)?(.+)', 1] - title = cmd_read_at(srcdir, [gitcmd + %W[log --format=%s -n1 HEAD]]) + title = cmd_read_at(srcdir, [gitcmd + %W[log --format=%s -n1 FETCH_HEAD..HEAD]]) title = nil if title.empty? [last, changed, modified, branch, title] end |