summaryrefslogtreecommitdiff
path: root/tool/vcs.rb
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-04-29 23:02:18 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-04-29 23:02:18 +0900
commit040b37f8b4b8d0a4931ee9b7c15b57f9f918639a (patch)
tree4b1cd4206eef7e3c86d99698c2e3e1ab17075613 /tool/vcs.rb
parentf95f07dad30a80b7e3eb4b2838ca4311d2822764 (diff)
Use 10 chars as RUBY_REVISION in snapshot too
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r--tool/vcs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index d7f92bd..bd8e7e1 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -391,7 +391,7 @@ class VCS
def self.get_revisions(path, srcdir = nil)
gitcmd = [COMMAND]
- last = cmd_read_at(srcdir, [[*gitcmd, 'rev-parse', '--short', 'HEAD']]).rstrip
+ last = cmd_read_at(srcdir, [[*gitcmd, 'rev-parse', '--short=10', 'HEAD']]).rstrip
if path
log = cmd_read_at(srcdir, [[*gitcmd, 'log', '-n1', '--date=iso', path]])
else