summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-04-22 21:44:44 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-04-22 21:45:13 +0900
commit87261cf59f4914801512cf0f3f1332f0c94b6952 (patch)
tree3f9a7445dcef935b422862831e30b6a5058d145b
parent5da52d1210625fb00acd573b3f32281b4bde1730 (diff)
Omit last_commit=RUBY_LAST_COMMIT_TITLE without local commits
-rw-r--r--tool/vcs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index d63336a..6b72312 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