@@ -1329,6 +1329,7 @@ while 1 " Without TCO, Vim stack is bound to explode
13291329 if empty (error )
13301330 if pull
13311331 let fetch_opt = (has_tag && ! empty (globpath (spec.dir , ' .git/shallow' ))) ? ' --depth 99999999' : ' '
1332+ let fetch_opt .= has_tag ? ' --tags' : ' '
13321333 call s: spawn (name, printf (' git fetch %s %s 2>&1' , fetch_opt, prog), { ' dir' : spec.dir })
13331334 else
13341335 let s: jobs [name] = { ' running' : 0 , ' lines' : [' Already installed' ], ' error' : 0 }
@@ -1636,6 +1637,7 @@ class Plugin(object):
16361637 self .write (Action.UPDATE, self .name, [' Updating ...' ])
16371638 callback = functools.partial (self .write , Action.UPDATE, self .name)
16381639 fetch_opt = ' --depth 99999999' if self .tag and os.path .isfile (os.path .join (self .args [' dir' ], ' .git/shallow' )) else ' '
1640+ fetch_opt += self .tag ? ' --tags' : ' '
16391641 cmd = ' git fetch {0} {1} 2>&1' .format (fetch_opt, G_PROGRESS)
16401642 com = Command (cmd, self .args [' dir' ], G_TIMEOUT, callback)
16411643 result = com .execute (G_RETRIES)
@@ -1944,6 +1946,7 @@ function! s:update_ruby()
19441946 if pull
19451947 log .call name, ' Updating ...' , :update
19461948 fetch_opt = (tag && File.exist?(File.join (dir , ' .git/shallow' ))) ? ' --depth 99999999' : ' '
1949+ fetch_opt += tag ? ' --tags' : ' '
19471950 bt .call " #{chdir} && git fetch #{fetch_opt} #{progress} 2>&1" , name, :update , nil
19481951 else
19491952 [true, skip ]
0 commit comments