From 09368773991de12ad75457fa97675170d2b39a8f Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 27 Jul 2014 00:42:23 +0900 Subject: [PATCH] Don't check for the need for post-update hook when interrupted --- plug.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plug.vim b/plug.vim index e5fa848..d249ca9 100644 --- a/plug.vim +++ b/plug.vim @@ -444,6 +444,9 @@ endfunction function! s:do(pull, todo) for [name, spec] in items(a:todo) + if !isdirectory(spec.dir) + continue + endif execute 'cd '.s:esc(spec.dir) if has_key(s:prev_update.new, name) || (a:pull && \ !empty(s:system_chomp('git log --pretty=format:"%h" "HEAD...HEAD@{1}"')))