diff mbox series

[4/4] ci/update-repos: always pass the latest URL

Message ID 20250326181206.1287342-4-ross.burton@arm.com
State New
Headers show
Series [1/4] CI: use canonical git.yoctoproject.org URLs | expand

Commit Message

Ross Burton March 26, 2025, 6:12 p.m. UTC
Instead of assuming that the repository was created with the latest URL,
fetch the repository explicitly when fetching.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 ci/update-repos | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/ci/update-repos b/ci/update-repos
index ef69ee45..c44246cc 100755
--- a/ci/update-repos
+++ b/ci/update-repos
@@ -44,7 +44,7 @@  if __name__ == "__main__":
         if repodir.exists():
             try:
                 print("Updating %s..." % repo)
-                subprocess.run(["git", "-C", repodir, "-c", "gc.autoDetach=false", "fetch"], check=True)
+                subprocess.run(["git", "-C", repodir, "-c", "gc.autoDetach=false", "fetch", repo], check=True)
             except subprocess.CalledProcessError as e:
                 print(e)
                 failed = True