diff options
author | Matthew Smith <matthew.smith2@extendhealth.com> | 2011-06-17 16:25:39 -0600 |
---|---|---|
committer | Matthew Smith <matthew.smith2@extendhealth.com> | 2011-06-17 16:25:39 -0600 |
commit | 08e08805ea5c04b8e4fc5a4c83e5618383e85c38 (patch) | |
tree | bf9f2b0839e430c35299f0909a65ebba22a7f35b /lib | |
parent | 073094d6e68271907205721f2a2f0e1844abc667 (diff) | |
download | bundler-08e08805ea5c04b8e4fc5a4c83e5618383e85c38.tar.gz |
Fixed a bug that was not properly caching gems from all git repositories.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/source.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb index f18ace20..2dc85a3d 100644 --- a/lib/bundler/source.rb +++ b/lib/bundler/source.rb @@ -585,7 +585,11 @@ module Bundler end def base_name - File.basename(uri.sub(%r{^(\w+://)?([^/:]+:)},''), ".git") + val = File.basename(uri.sub(%r{^(\w+://)?([^/:]+:)},''), ".git") + if(val == "/") + val = "Undetermined" + end + return val end def shortref_for_display(ref) |