Browse Source

Allow clobbering of existing tags from remote.

Bug: 120778183
Change-Id: Id44e2b68abc410a3afd4e07a3c943b0936347e38
Xin Li 7 years ago
parent
commit
ca99ff6d5b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      project.py
  2. 1 1
      repo

+ 1 - 1
project.py

@@ -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):

+ 1 - 1
repo

@@ -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: