fix regex for local repositories

This commit is contained in:
termac 2011-03-31 21:18:13 +02:00
parent f1bac10257
commit 7e7cde6444

View File

@ -47,6 +47,7 @@ func! s:parse_name(arg)
elseif arg =~ '^\s*\(git@\|git://\)\S\+' elseif arg =~ '^\s*\(git@\|git://\)\S\+'
\ || arg =~ 'https\?://' \ || arg =~ 'https\?://'
\ || arg =~ '\.git\s*$' \ || arg =~ '\.git\s*$'
\ || arg =~ '\(file://\)\?[~/]'
let uri = arg let uri = arg
let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i') let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i')
else else