commit
003c3769be
@ -70,9 +70,9 @@ see [`:h vundle`](vundle/blob/master/doc/vundle.txt#L1) vimdoc for more details.
|
||||
|
||||
## FAQ
|
||||
|
||||
- **Q** i'm aked for username/pass, why?
|
||||
**A** Correct invalid bundle name.
|
||||
this is the case of invalid name used with `Bundle`, which leads to attemt to clone nonexisting repo:
|
||||
- **Q** Why am I asked for username/pass?
|
||||
|
||||
**A** This is the case of invalid name used with `Bundle`, which leads to attempt to clone nonexisting repo:
|
||||
|
||||
git clone http://github.com/gmarik/non_existin_repo
|
||||
Cloning into non_existin_repo...
|
||||
|
@ -41,7 +41,7 @@ endf
|
||||
func! s:parse_name(arg)
|
||||
let arg = a:arg
|
||||
if arg =~? '^\s*\(gh\|github\):\S\+'
|
||||
\ || arg =~? '^\w[a-z0-9-]\+/[^/]\+$'
|
||||
\ || arg =~? '^[a-z0-9][a-z0-9-]*/[^/]\+$'
|
||||
let uri = 'https://github.com/'.split(arg, ':')[-1]
|
||||
let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i')
|
||||
elseif arg =~? '^\s*\(git@\|git://\)\S\+'
|
||||
|
Loading…
Reference in New Issue
Block a user