summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Alfonsi <laurent.alfonsi@linaro.org>2024-04-25 16:37:44 +0200
committerLaurent Alfonsi <laurent.alfonsi@linaro.org>2024-04-25 16:37:47 +0200
commit03c51383572ce5be6e4b7de6b73d1b14779c2c89 (patch)
treed7c50c5ee6fa53181925bff83df516f0527f0ebb
parentc1883aaf9d36479c14d0a544c5c1a2ac2fd1e135 (diff)
round-robin-baseline.sh: clean base-artifacts repository before rewriting itHEADtestedmaster
useful in case of option --commit_artifacts false Change-Id: I81e23c6fa5bacbd43413a1c567e67400464b9140
-rwxr-xr-xround-robin-baseline.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/round-robin-baseline.sh b/round-robin-baseline.sh
index 70f38434..2dea2322 100755
--- a/round-robin-baseline.sh
+++ b/round-robin-baseline.sh
@@ -542,6 +542,9 @@ if $commit_artifacts; then
update_baseline
fi
+# make sure base-artifact repository is clean to continue
+git -C base-artifacts reset --hard
+
# Compute the maximum of revisions that we accept to remove. If we remove
# more than we expected. This is suspicious, stop the rewriting process
declare nb_revs nb_removed_revs