mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Allow clobbering of existing tags from remote.
Bug: 120778183 Change-Id: Id44e2b68abc410a3afd4e07a3c943b0936347e38
This commit is contained in:
parent
d26146de7f
commit
6e53844f1e
@ -2187,7 +2187,7 @@ class Project(object):
|
|||||||
cmd.append(bundle_dst)
|
cmd.append(bundle_dst)
|
||||||
for f in remote.fetch:
|
for f in remote.fetch:
|
||||||
cmd.append(str(f))
|
cmd.append(str(f))
|
||||||
cmd.append('refs/tags/*:refs/tags/*')
|
cmd.append('+refs/tags/*:refs/tags/*')
|
||||||
|
|
||||||
ok = GitCommand(self, cmd, bare=True).Wait() == 0
|
ok = GitCommand(self, cmd, bare=True).Wait() == 0
|
||||||
if os.path.exists(bundle_dst):
|
if os.path.exists(bundle_dst):
|
||||||
|
2
repo
2
repo
@ -536,7 +536,7 @@ def _Fetch(url, local, src, quiet):
|
|||||||
err = None
|
err = None
|
||||||
cmd.append(src)
|
cmd.append(src)
|
||||||
cmd.append('+refs/heads/*:refs/remotes/origin/*')
|
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)
|
proc = subprocess.Popen(cmd, cwd=local, stderr=err)
|
||||||
if err:
|
if err:
|
||||||
|
Loading…
Reference in New Issue
Block a user