diff options
author | Matthew Smith <matthew.smith2@extendhealth.com> | 2011-06-21 15:24:41 -0600 |
---|---|---|
committer | Matthew Smith <matthew.smith2@extendhealth.com> | 2011-06-21 15:24:41 -0600 |
commit | 448c1d443e3a8d47f78555bafd0f8e61a16cd46e (patch) | |
tree | d1d664c8f3b5e7f650402fa12557fc6766921109 /lib | |
parent | cd336f41e59e2670ea25bb8c5afa368063b71250 (diff) | |
download | bundler-448c1d443e3a8d47f78555bafd0f8e61a16cd46e.tar.gz |
Fixed regex error in base_name and added test.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/source.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb index 97c34d29..bea3f987 100644 --- a/lib/bundler/source.rb +++ b/lib/bundler/source.rb @@ -585,7 +585,7 @@ module Bundler end def base_name - afterSub = uri.sub(%r{^(\w+://)?([^/:]+:)?(//\w*/)?(\w*/)*},'') + File.basename(uri.sub(%r{^(\w+://)?([^/:]+:)?(//\w*/)?(\w*/)*},''),".git") end def shortref_for_display(ref) |