@@ -1329,6 +1329,7 @@ while 1 " Without TCO, Vim stack is bound to explode
1329
1329
if empty (error )
1330
1330
if pull
1331
1331
let fetch_opt = (has_tag && ! empty (globpath (spec.dir , ' .git/shallow' ))) ? ' --depth 99999999' : ' '
1332
+ let fetch_opt .= has_tag ? ' --tags' : ' '
1332
1333
call s: spawn (name, printf (' git fetch %s %s 2>&1' , fetch_opt, prog), { ' dir' : spec.dir })
1333
1334
else
1334
1335
let s: jobs [name] = { ' running' : 0 , ' lines' : [' Already installed' ], ' error' : 0 }
@@ -1636,6 +1637,7 @@ class Plugin(object):
1636
1637
self .write (Action.UPDATE, self .name, [' Updating ...' ])
1637
1638
callback = functools.partial (self .write , Action.UPDATE, self .name)
1638
1639
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' : ' '
1639
1641
cmd = ' git fetch {0} {1} 2>&1' .format (fetch_opt, G_PROGRESS)
1640
1642
com = Command (cmd, self .args [' dir' ], G_TIMEOUT, callback)
1641
1643
result = com .execute (G_RETRIES)
@@ -1944,6 +1946,7 @@ function! s:update_ruby()
1944
1946
if pull
1945
1947
log .call name, ' Updating ...' , :update
1946
1948
fetch_opt = (tag && File.exist?(File.join (dir , ' .git/shallow' ))) ? ' --depth 99999999' : ' '
1949
+ fetch_opt += tag ? ' --tags' : ' '
1947
1950
bt .call " #{chdir} && git fetch #{fetch_opt} #{progress} 2>&1" , name, :update , nil
1948
1951
else
1949
1952
[true, skip ]
0 commit comments