Improve git URI validation

Close #530
This commit is contained in:
Junegunn Choi
2016-10-08 23:32:48 +09:00
parent 5d8c4bfc1f
commit 6575bd65b1
3 changed files with 38 additions and 4 deletions

View File

@@ -15,7 +15,8 @@ Execute (Initialize test environment):
" Temporarily patch plug.vim
call system('cp "$PLUG_SRC" "$PLUG_TMP"')
call writefile(extend(readfile($PLUG_TMP),
\ ['function! ResetPlug()', 'let s:loaded = {}', 'endfunction']), $PLUG_TMP)
\ ['function! ResetPlug()', 'let s:loaded = {}', 'endfunction',
\ 'function! CompareURI(a, b)', 'return s:compare_git_uri(a:a, a:b)', 'endfunction']), $PLUG_TMP)
set t_Co=256
colo default