ruby-changes:55618
From: Kazuhiro <ko1@a...>
Date: Mon, 29 Apr 2019 23:04:34 +0900 (JST)
Subject: [ruby-changes:55618] Kazuhiro NISHIYAMA:040b37f8b4 (trunk): Use 10 chars as RUBY_REVISION in snapshot too
https://git.ruby-lang.org/ruby.git/commit/?id=040b37f8b4 From 040b37f8b4b8d0a4931ee9b7c15b57f9f918639a Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Mon, 29 Apr 2019 23:02:18 +0900 Subject: Use 10 chars as RUBY_REVISION in snapshot too 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 https://github.com/ruby/ruby/blob/trunk/tool/vcs.rb#L391 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/