ruby-changes:44600
From: nobu <ko1@a...>
Date: Tue, 8 Nov 2016 19:44:27 +0900 (JST)
Subject: [ruby-changes:44600] nobu:r56673 (trunk): vcs.rb: fix GIT.get_revisions
nobu 2016-11-08 19:44:21 +0900 (Tue, 08 Nov 2016) New Revision: 56673 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56673 Log: vcs.rb: fix GIT.get_revisions * tool/vcs.rb (VCS::GIT.get_revisions): fix for out-of-place build. Modified files: trunk/tool/vcs.rb Index: tool/vcs.rb =================================================================== --- tool/vcs.rb (revision 56672) +++ tool/vcs.rb (revision 56673) @@ -343,20 +343,20 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/vcs.rb#L343 logcmd = gitcmd + %W[log -n1 --date=iso] logcmd << "--grep=^ *git-svn-id: .*@[0-9][0-9]*" idpat = /git-svn-id: .*?@(\d+) \S+\Z/ - log = IO.pread(logcmd) + log = cmd_read_at(srcdir, [logcmd]) commit = log[/\Acommit (\w+)/, 1] last = log[idpat, 1] if path cmd = logcmd cmd += [path] unless path == '.' - log = IO.pread(cmd) + log = cmd_read_at(srcdir, [cmd]) changed = log[idpat, 1] else changed = last end modified = log[/^Date:\s+(.*)/, 1] - branch = IO.pread(gitcmd + %W[symbolic-ref HEAD])[%r'\A(?:refs/heads/)?(.+)', 1] - title = IO.pread(gitcmd + %W[log --format=%s -n1 #{commit}..HEAD]) + branch = cmd_read_at(srcdir, [gitcmd + %W[symbolic-ref HEAD]])[%r'\A(?:refs/heads/)?(.+)', 1] + title = cmd_read_at(srcdir, [gitcmd + %W[log --format=%s -n1 #{commit}..HEAD]]) title = nil if title.empty? [last, changed, modified, branch, title] end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/