From 8b45742540f92ba902c97ad1d3d8862ba3305438 Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 14 Dec 2020 14:30:44 +0900 Subject: [PATCH] Disable credential.helper for git fetch (#1046) --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index c1657f2..9c296ac 100644 --- a/plug.vim +++ b/plug.vim @@ -1532,7 +1532,7 @@ while 1 " Without TCO, Vim stack is bound to explode let [error, _] = s:git_validate(spec, 0) if empty(error) if pull - let cmd = ['git', 'fetch'] + let cmd = s:git_version_requirement(2) ? ['git', '-c', 'credential.helper=', 'fetch'] : ['git', 'fetch'] if has_tag && !empty(globpath(spec.dir, '.git/shallow')) call extend(cmd, ['--depth', '99999999']) endif