From: Jan Kiszka <
jan.k...@siemens.com>
Filter out the "-debian-<release>" part of the container tag when
identifying the backing git tag. This allows to run reliably e.g.
scripts/reproduce-container.sh kas-isar:5.0-debian-bookworm
Signed-off-by: Jan Kiszka <
jan.k...@siemens.com>
---
scripts/reproduce-container.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/reproduce-container.sh b/scripts/reproduce-container.sh
index 44b888f..277ef1f 100755
--- a/scripts/reproduce-container.sh
+++ b/scripts/reproduce-container.sh
@@ -51,7 +51,7 @@ if [ -z "$DEBIAN_TAG" ]; then
exit 1
fi
-GIT_REFSPEC="$TAG"
+GIT_REFSPEC="${TAG%%-debian-*}"
if [ "$GIT_REFSPEC" = "latest" ]; then
GIT_REFSPEC=master
fi
--
2.51.0