From 76273c31a16c233c6fa2c8269ae7d99d6b30f791 Mon Sep 17 00:00:00 2001 From: Dmitri Iouchtchenko Date: Fri, 6 May 2011 21:03:24 -0400 Subject: [PATCH 1/2] fix parsing of GitHub repo paths GitHub usernames cannot start with an underscore, but they can be a single character long. --- autoload/vundle/config.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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\+' From 711c611b779c230df6fbf5624f1aa31ce38ad14c Mon Sep 17 00:00:00 2001 From: Dmitri Iouchtchenko Date: Fri, 6 May 2011 21:05:12 -0400 Subject: [PATCH 2/2] update formatting and phrasing of FAQ --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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...