summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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