Browse Source

Merge pull request #25 from 0/master

Tiny fixes
pull/29/merge
15 years ago
parent
commit
003c3769be
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      README.md
  2. +1
    -1
      autoload/vundle/config.vim

+ 3
- 3
README.md View File

@ -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...


+ 1
- 1
autoload/vundle/config.vim View File

@ -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…
Cancel
Save