class Bundler::Source::Git
def git(command)
def git(command) if allow_git_ops? out = %x{git #{command}} if $? != 0 raise GitError, "An error has occurred in git when running `git #{command}`. Cannot complete bundling." end out else raise GitError, "Bundler is trying to run a `git #{command}` at runtime. You probably need to run `bundle install`. However, " \ "this error message could probably be more useful. Please submit a ticket at http://github.com/carlhuda/bundler/issues " \ "with steps to reproduce as well as the following\n\nCALLER: #{caller.join("\n")}" end end