summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHibariya <hibariya@gmail.com>2018-08-08 18:07:35 +0900
committerHibariya <hibariya@gmail.com>2018-08-08 18:07:35 +0900
commit0b9f0189ae9d3cd081b9e7b55eb3717938c727e3 (patch)
treee61a799ecdd02a4fd7203dd68700072f1532f34c
parentcc25eda74bd5ff4c04e5e5973fddce364e2eab5c (diff)
downloadbundler-0b9f0189ae9d3cd081b9e7b55eb3717938c727e3.tar.gz
Fix SystemStackError (stack level too deep) in GemHelper#sh_with_code
The method always calls itself recursively. It can be supposed that `sh_with_status` should be called rather than `sh_with_code` because Process::Status is called later on.
-rw-r--r--lib/bundler/gem_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/gem_helper.rb b/lib/bundler/gem_helper.rb
index ba996d8a85..5b2147e503 100644
--- a/lib/bundler/gem_helper.rb
+++ b/lib/bundler/gem_helper.rb
@@ -188,7 +188,7 @@ module Bundler
end
def sh_with_code(cmd, &block)
- outbuf, status = sh_with_code(cmd, &block)
+ outbuf, status = sh_with_status(cmd, &block)
[outbuf, (status && status.exitstatus) || -1]
end