aboutsummaryrefslogtreecommitdiffstats
path: root/tool/vcs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r--tool/vcs.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index 5ef77e424d..43b18e4879 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -79,12 +79,15 @@ if RUBY_VERSION < "2.0"
end
else
module DebugPOpen
+ verbose, $VERBOSE = $VERBOSE, nil if RUBY_VERSION < "2.1"
refine IO.singleton_class do
def popen(*args)
STDERR.puts args.inspect if $DEBUG
super
end
end
+ ensure
+ $VERBOSE = verbose unless verbose.nil?
end
using DebugPOpen
end