Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
git method was checking the value of 0 (a Process::Status object) for…
Browse files Browse the repository at this point in the history
… the exit value of the git command instead of 0.exitstatus
  • Loading branch information
Dave Smylie authored and indirect committed Jan 12, 2011
1 parent 7097e59 commit d2605c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/source.rb
Expand Up @@ -558,7 +558,7 @@ def git(command)
if allow_git_ops?
out = %x{git #{command}}

if $? != 0
if $?.exitstatus != 0
raise GitError, "An error has occurred in git when running `git #{command}`. Cannot complete bundling."
end
out
Expand Down

0 comments on commit d2605c8

Please sign in to comment.