aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatthew Smith <matthew.smith2@extendhealth.com>2011-06-21 15:24:41 -0600
committerMatthew Smith <matthew.smith2@extendhealth.com>2011-06-21 15:24:41 -0600
commit448c1d443e3a8d47f78555bafd0f8e61a16cd46e (patch)
treed1d664c8f3b5e7f650402fa12557fc6766921109 /lib
parentcd336f41e59e2670ea25bb8c5afa368063b71250 (diff)
downloadbundler-448c1d443e3a8d47f78555bafd0f8e61a16cd46e.tar.gz
Fixed regex error in base_name and added test.
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/source.rb2
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)