aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/source
diff options
context:
space:
mode:
authorJesse Luehrs <jesse.luehrs@stripe.com>2015-12-08 11:09:07 -0800
committerJesse Luehrs <jesse.luehrs@stripe.com>2015-12-08 11:09:07 -0800
commit0cb5e26f94a3e4aba241ab0d1dafa48db84fe175 (patch)
tree1010e217bba8bdfc0c1bb4f3638358abc746aed8 /lib/bundler/source
parentdeb8f8ca79cfbfdee9b513eb1032698d9317c691 (diff)
downloadbundler-0cb5e26f94a3e4aba241ab0d1dafa48db84fe175.tar.gz
remove the "clear cache and retry" logic
i can't find a case where it will actually be hit, so this avoids leaving untested code around
Diffstat (limited to 'lib/bundler/source')
-rw-r--r--lib/bundler/source/git/git_proxy.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/bundler/source/git/git_proxy.rb b/lib/bundler/source/git/git_proxy.rb
index d6d504d6..edf7924f 100644
--- a/lib/bundler/source/git/git_proxy.rb
+++ b/lib/bundler/source/git/git_proxy.rb
@@ -56,14 +56,7 @@ module Bundler
begin
@revision ||= find_local_revision
rescue GitCommandError
- Bundler.ui.info "Error finding #{ref} in #{path}: clearing the cache and trying again"
- remove_cache
- checkout
- begin
- @revision ||= find_local_revision
- rescue GitCommandError
- raise MissingGitRevisionError.new(ref, uri)
- end
+ raise MissingGitRevisionError.new(ref, uri)
end
@revision