aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatthew Smith <matthew.smith2@extendhealth.com>2011-06-21 15:15:04 -0600
committerMatthew Smith <matthew.smith2@extendhealth.com>2011-06-21 15:15:04 -0600
commitcd336f41e59e2670ea25bb8c5afa368063b71250 (patch)
treed387611ad9a97136aab68d4eab9eb6baabd2444f /lib
parentea23c4f17e3f79905368ef145d12457d3ee247fb (diff)
downloadbundler-cd336f41e59e2670ea25bb8c5afa368063b71250.tar.gz
Updated regex for network share paths
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/source.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb
index 5312580b..97c34d29 100644
--- a/lib/bundler/source.rb
+++ b/lib/bundler/source.rb
@@ -585,11 +585,7 @@ module Bundler
end
def base_name
- val = File.basename(uri.sub(%r{^(\w+://)?([^/:]+:)},''), ".git")
- if(val == "/")
- val = "Undetermined"
- end
- return val
+ afterSub = uri.sub(%r{^(\w+://)?([^/:]+:)?(//\w*/)?(\w*/)*},'')
end
def shortref_for_display(ref)