aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatthew Smith <matthew.smith2@extendhealth.com>2011-06-17 16:25:39 -0600
committerMatthew Smith <matthew.smith2@extendhealth.com>2011-06-17 16:25:39 -0600
commit08e08805ea5c04b8e4fc5a4c83e5618383e85c38 (patch)
treebf9f2b0839e430c35299f0909a65ebba22a7f35b /lib
parent073094d6e68271907205721f2a2f0e1844abc667 (diff)
downloadbundler-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.rb6
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)