From a5e68f5baba55449c70c1b35a51ac38d122b3442 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Mon, 14 Dec 2020 09:41:31 +0900 Subject: [PATCH] Pass empty string for credential.helper --- 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