From c093ac263f8175307e67b7fd7eeeaa2e73ceaded Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Tue, 20 Oct 2026 10:39:48 +0200 Subject: [PATCH] docker/build.sh: STRATA_BUILD_COMMIT overrides the commit it passes --- docker/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/build.sh b/docker/build.sh index 242c356e..6fd475c7 100755 --- a/docker/build.sh +++ b/docker/build.sh @@ -57,7 +57,7 @@ cleanup() { if [ -n "$own_ctx" ] && [ -z "$ctxonly" ]; then rm -rf "$ctx"; fi; } trap cleanup EXIT # the commit the sources are from (the build context has no .git; package_terminal.py writes it into the archive's COMMIT) -commit=$(git -C "$repo" rev-parse HEAD 2>/dev/null || true) +commit=${STRATA_BUILD_COMMIT:-$(git -C "$repo" rev-parse HEAD 2>/dev/null || true)} case "$commit" in *[!0-9a-f]*|"") commit="" ;; esac # 1. the Terminal's sources: exactly what packaging/package_terminal.py copies (the working tree, so local edits are in the image)