Преглед изворни кода

Disable credential.helper for git fetch (#1046)

mattn пре 5 година
родитељ
комит
8b45742540
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      plug.vim

+ 1 - 1
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