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

Show update percentage when updating plugins

close #698
This commit is contained in:
wsdjeg 2017-07-03 19:56:35 +08:00
parent c94e6613b3
commit 93d2b8131f

View File

@ -356,9 +356,10 @@ endfunction
function! s:pull(repo) abort
let s:pct += 1
let s:ui_buf[a:repo.name] = s:pct
let argv = ['git', '-C', a:repo.path, 'pull']
let argv = ['git', '-C', a:repo.path, 'pull', '--progress']
if s:JOB.vim_job || s:JOB.nvim_job
let jobid = s:JOB.start(argv,{
\ 'on_stderr' : function('s:on_install_stdout'),
\ 'on_exit' : function('s:on_pull_exit')
\ })
if jobid != 0