Use ssh over using https for github uris.

It is a little nicer to use ssh over https for getting repos.
This commit is contained in:
Colin Wood 2014-08-25 09:41:19 -04:00
parent 3572ffde79
commit b37021d925

View File

@ -379,7 +379,11 @@ function! s:infer_properties(name, repo)
if repo !~ '/' if repo !~ '/'
let repo = 'vim-scripts/'. repo let repo = 'vim-scripts/'. repo
endif endif
let uri = 'https://git::@github.com/' . repo . '.git' if g:plug_use_ssh == 1
let uri = 'git@github.com:' . repo . '.git'
else
let uri = 'https://git::@github.com/' . repo . '.git'
endif
endif endif
let dir = s:dirpath( fnamemodify(join([g:plug_home, a:name], '/'), ':p') ) let dir = s:dirpath( fnamemodify(join([g:plug_home, a:name], '/'), ':p') )
return { 'dir': dir, 'uri': uri } return { 'dir': dir, 'uri': uri }
@ -1251,4 +1255,3 @@ endif
let &cpo = s:cpo_save let &cpo = s:cpo_save
unlet s:cpo_save unlet s:cpo_save