Check for existing variable

This commit is contained in:
Colin Wood 2014-08-25 09:46:35 -04:00
parent b37021d925
commit aff77f648f

View File

@ -379,7 +379,7 @@ function! s:infer_properties(name, repo)
if repo !~ '/'
let repo = 'vim-scripts/'. repo
endif
if g:plug_use_ssh == 1
if exists('g:plug_use_ssh') && g:plug_use_ssh == 1
let uri = 'git@github.com:' . repo . '.git'
else
let uri = 'https://git::@github.com/' . repo . '.git'