mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-07 01:24:27 +08:00
Don't check for the need for post-update hook when interrupted
This commit is contained in:
3
plug.vim
3
plug.vim
@@ -444,6 +444,9 @@ endfunction
|
|||||||
|
|
||||||
function! s:do(pull, todo)
|
function! s:do(pull, todo)
|
||||||
for [name, spec] in items(a:todo)
|
for [name, spec] in items(a:todo)
|
||||||
|
if !isdirectory(spec.dir)
|
||||||
|
continue
|
||||||
|
endif
|
||||||
execute 'cd '.s:esc(spec.dir)
|
execute 'cd '.s:esc(spec.dir)
|
||||||
if has_key(s:prev_update.new, name) || (a:pull &&
|
if has_key(s:prev_update.new, name) || (a:pull &&
|
||||||
\ !empty(s:system_chomp('git log --pretty=format:"%h" "HEAD...HEAD@{1}"')))
|
\ !empty(s:system_chomp('git log --pretty=format:"%h" "HEAD...HEAD@{1}"')))
|
||||||
|
|||||||
Reference in New Issue
Block a user