diff --git a/README.md b/README.md index 3a2a791..bacbc79 100644 --- a/README.md +++ b/README.md @@ -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... diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index 9d49dbf..2287140 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -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\+'