diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-04-29 23:02:18 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-04-29 23:02:18 +0900 |
commit | 040b37f8b4b8d0a4931ee9b7c15b57f9f918639a (patch) | |
tree | 4b1cd4206eef7e3c86d99698c2e3e1ab17075613 /tool | |
parent | f95f07dad30a80b7e3eb4b2838ca4311d2822764 (diff) | |
download | ruby-040b37f8b4b8d0a4931ee9b7c15b57f9f918639a.tar.gz |
Use 10 chars as RUBY_REVISION in snapshot too
Diffstat (limited to 'tool')
-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 d7f92bd7c2..bd8e7e1083 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 |