[Buildroot] [PATCH] scripts/autobuild-run: also fetch tags when updating buildroot sources

Yann E. MORIN yann.morin.1998 at free.fr
Sun Aug 14 21:19:11 UTC 2022


The post recent tag is used by git-describe, and ends up in the header
of the .Config file, so having up-to-date local tags helps in reviewing
.config files when trying to reproduce autobuild failures.

Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
---
 scripts/autobuild-run | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/autobuild-run b/scripts/autobuild-run
index 337644f..4987c61 100755
--- a/scripts/autobuild-run
+++ b/scripts/autobuild-run
@@ -328,7 +328,7 @@ class Builder:
 
         # Update the Buildroot sources.
         abssrcdir = os.path.abspath(self.srcdir)
-        ret = subprocess.call(["git", "fetch", self.repo, branch], cwd=abssrcdir, stdout=self.log, stderr=self.log)
+        ret = subprocess.call(["git", "fetch", "-t", self.repo, branch], cwd=abssrcdir, stdout=self.log, stderr=self.log)
         if ret != 0:
             log_write(self.log, "ERROR: could not fetch Buildroot sources")
             return -1
-- 
2.25.1




More information about the buildroot mailing list