From d5daff0d6a00a159fa9514cd9e7ec4f2c33e07b4 Mon Sep 17 00:00:00 2001 From: James Munnelly Date: Fri, 3 May 2019 00:58:10 +0100 Subject: [PATCH] Allow overriding APP_GIT_COMMIT Signed-off-by: James Munnelly --- hack/print-workspace-status.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/print-workspace-status.sh b/hack/print-workspace-status.sh index 0c4f4b5d8..f9441bb8a 100755 --- a/hack/print-workspace-status.sh +++ b/hack/print-workspace-status.sh @@ -29,7 +29,7 @@ SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/../.. if [ -z "${APP_VERSION:-}" ]; then APP_VERSION=canary fi -APP_GIT_COMMIT=$(git rev-parse HEAD) +APP_GIT_COMMIT=${APP_GIT_COMMIT:-$(git rev-parse HEAD)} GIT_STATE="" if [ ! -z "$(git status --porcelain)" ]; then GIT_STATE="dirty"