summaryrefslogtreecommitdiff
path: root/tool/vcs.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-05 03:19:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-05 03:19:39 +0000
commit3a4183d2b7d0ed3956f9e05cc4b3b5725fede03a (patch)
treeb5fd76a1cdea109b8318fd54969e66b2ff73ea56 /tool/vcs.rb
parent5c6162ad3fa08afe08a2e469ef7ad22fec577e2f (diff)
vcs.rb: for old ruby
* tool/vcs.rb (DebugSystem#system): pop option hash for old version ruby which does not support `system` options. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r--tool/vcs.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index 022783a..6ce8d4b 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -103,6 +103,7 @@ else
exception = opts.fetch(:exception) {opts[:exception] = true}
elsif opts
exception = opts.delete(:exception) {true}
+ args.pop if opts.empty?
end
ret = super(*args)
raise "Command failed with status (#$?): #{args[0]}" if exception and !ret