diff mbox series

scripts/autobuild-run: also fetch tags when updating buildroot sources

Message ID 20220814211911.3231098-1-yann.morin.1998@free.fr
State Accepted
Headers show
Series scripts/autobuild-run: also fetch tags when updating buildroot sources | expand

Commit Message

Yann E. MORIN Aug. 14, 2022, 9:19 p.m. UTC
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@free.fr>
---
 scripts/autobuild-run | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Thomas Petazzoni Aug. 20, 2022, 9:30 a.m. UTC | #1
On Sun, 14 Aug 2022 23:19:11 +0200
"Yann E. MORIN" <yann.morin.1998@free.fr> wrote:

> 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@free.fr>
> ---
>  scripts/autobuild-run | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to buildroot-test, thanks.

Thomas
diff mbox series

Patch

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