From c360518fb8131e99795f8208f8a6105ceca55ec2 Mon Sep 17 00:00:00 2001 From: Santiago Bernhardt Date: Fri, 12 May 2023 15:30:16 +1200 Subject: [PATCH] Fix: tag_commit on fresh repo with no tags (#261) --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index c85ca307..7a380b40 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -113,7 +113,7 @@ then fi # get current commit hash for tag -tag_commit=$(git rev-list -n 1 "$tag") +tag_commit=$(git rev-list -n 1 "$tag" || true ) # get current commit hash commit=$(git rev-parse HEAD) # skip if there are no new commits for non-pre_release