Skip to content

Commit a68a3e7

Browse files
committed
Use the real branch name, not HEAD
1 parent cba0459 commit a68a3e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.buildkite/hooks/pre-command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ echo "Semantic version = \"${CONTAINER_SEMVER}\""
88
export CONTAINER_SHORT_SHA=$(git log -1 --pretty='%h')
99
echo "Short SHA = \"${CONTAINER_SHORT_SHA}\""
1010

11-
export CONTAINER_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD | sed -e 's/[\/:]/_/g')
11+
export CONTAINER_BRANCH_NAME=$(echo "$BUILDKITE_BRANCH" | sed -e 's/[\/:]/_/g')
1212
echo "Safe branch name = \"${CONTAINER_BRANCH_NAME}\""

0 commit comments

Comments
 (0)