Allow clobbering of existing tags from remote.

Bug: 120778183
Change-Id: Id44e2b68abc410a3afd4e07a3c943b0936347e38
This commit is contained in:
Xin Li 2018-12-10 11:33:16 -08:00
parent d26146de7f
commit 6e53844f1e
2 changed files with 2 additions and 2 deletions

View File

@ -2187,7 +2187,7 @@ class Project(object):
cmd.append(bundle_dst)
for f in remote.fetch:
cmd.append(str(f))
cmd.append('refs/tags/*:refs/tags/*')
cmd.append('+refs/tags/*:refs/tags/*')
ok = GitCommand(self, cmd, bare=True).Wait() == 0
if os.path.exists(bundle_dst):

2
repo
View File

@ -536,7 +536,7 @@ def _Fetch(url, local, src, quiet):
err = None
cmd.append(src)
cmd.append('+refs/heads/*:refs/remotes/origin/*')
cmd.append('refs/tags/*:refs/tags/*')
cmd.append('+refs/tags/*:refs/tags/*')
proc = subprocess.Popen(cmd, cwd=local, stderr=err)
if err: