1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 05:00:04 +08:00

Add supporting of rev option

This commit is contained in:
wsdjeg 2017-04-12 21:28:07 +08:00
parent dde53099a0
commit 6e6a34ef20

View File

@ -247,7 +247,8 @@ endfunction
" @vimlint(EVL103, 0, a:event) " @vimlint(EVL103, 0, a:event)
function! s:lock_revision(repo) abort function! s:lock_revision(repo) abort
let cmd = ['git', 'checkout', '-C', a:repo.path, 'a:repo.rev'] let cmd = ['git', '-C', a:repo.path, 'checkout', a:repo.rev]
let g:wsd = cmd
call s:VIM_CO.system(cmd) call s:VIM_CO.system(cmd)
endfunction endfunction