1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use 10 chars as RUBY_REVISION in snapshot too

This commit is contained in:
Kazuhiro NISHIYAMA 2019-04-29 23:02:18 +09:00
parent f95f07dad3
commit 040b37f8b4
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -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