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:
parent
f95f07dad3
commit
040b37f8b4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue