Skip to content

Commit 0fd8743

Browse files
Allow domino-build.sh script to succeed if building a 'detached HEAD' git commit (#43)
1 parent 10bbf51 commit 0fd8743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

domino-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ SOURCE_IMAGE_TAG="$(<version.txt)"
2929
TARGET_GIT_REV_TAG="${SOURCE_IMAGE_TAG}-$(git rev-parse --short HEAD)"
3030
TARGET_IMAGE_TAGS=("${TARGET_GIT_REV_TAG}")
3131

32-
BRANCH_NAME="$(git symbolic-ref --short --quiet HEAD)"
32+
BRANCH_NAME="$(git symbolic-ref --short --quiet HEAD || echo "")"
3333
if [ -n "${BRANCH_NAME}" ]; then
3434
TARGET_IMAGE_TAGS+=("${SOURCE_IMAGE_TAG}-${BRANCH_NAME}.latest")
3535
fi

0 commit comments

Comments
 (0)