diff mbox series

[swat-tools,2/4] pokyciarchive: fetch tags with --tags

Message ID 20250617-improvements-v1-2-6125d17583fe@bootlin.com
State New
Headers show
Series Improvements and fixes to swat-tools | expand

Commit Message

Antonin Godard June 17, 2025, 3:04 p.m. UTC
Using 'refs/tags/*:refs/tags/*' for fetching the tags for a remote
removes the previously fetched tags of the other remotes. '--tags' does
not have that behavior.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 swattool/pokyciarchive.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/swattool/pokyciarchive.py b/swattool/pokyciarchive.py
index e464b37..93d8dc1 100644
--- a/swattool/pokyciarchive.py
+++ b/swattool/pokyciarchive.py
@@ -45,7 +45,7 @@  def update(min_age: Optional[int] = None) -> None:
         repo.remotes.create("archive", ARCHIVE_GITURL)
 
     for remote in repo.remotes:
-        remote.fetch(remote.fetch_refspecs + ['refs/tags/*:refs/tags/*'])
+        remote.fetch(remote.fetch_refspecs + ['--tags'])
 
 
 def get_build_commits(buildname: str, basebranch: str = "master",