Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Provided more helpful feedback when a git command fails.

  • Loading branch information...
commit 81a1303b37faac552c67a2c59778a9f58e12a3c0 1 parent 39debd8
@parndt parndt authored indirect committed
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/bundler/source.rb
View
5 lib/bundler/source.rb
@@ -560,9 +560,8 @@ def git(command)
out = %x{git #{command}}
if $?.exitstatus != 0
- msg = "Git error: " +
- "command `git #{command}` in directory #{Dir.pwd} has failed.\n" +
- "Cannot complete bundling."
+ msg = "Git error: command `git #{command}` in directory #{Dir.pwd} has failed."
+ msg << "\nIf this error persists you could try removing the cache directory '#{cache_path}'" if cached?
raise GitError, msg
end
out

1 comment on commit 81a1303

Please sign in to comment.
Something went wrong with that request. Please try again.