docker/build.sh: STRATA_BUILD_COMMIT overrides the commit it passes
This commit is contained in:
1 parent
436fbd0a6e
commit
c093ac263f
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user