summaryrefslogtreecommitdiff
path: root/tool/lib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-07 01:01:52 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-07 11:38:38 +0900
commit3890c9eeee2322b8bf81c04517a4714de77e49ff (patch)
treedc19259d79fe30079a5973503587d5b05f80c368 /tool/lib
parent71f7b0421acff068b94953f4d3f5b4d987ce5350 (diff)
Added more debug outputs from VCS::GIT
Diffstat (limited to 'tool/lib')
-rw-r--r--tool/lib/vcs.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index 73ef0a3553..9c4085960d 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -446,7 +446,9 @@ class VCS
end
def cmd_read_at(srcdir, cmds)
- without_gitconfig { IO.pread(*cmd_args(cmds, srcdir)) }
+ result = without_gitconfig { IO.pread(*cmd_args(cmds, srcdir)) }
+ VCS::DEBUG_OUT.puts result.inspect if debug?
+ result
end
def cmd_pipe(*cmds, &block)
@@ -536,6 +538,7 @@ class VCS
def initialize(*)
super
@srcdir = File.realpath(@srcdir)
+ VCS::DEBUG_OUT.puts @srcdir.inspect if debug?
self
end