From 92456612b16405cd55fe914e3c2d7a954cd82a0c Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Thu, 19 Sep 2024 16:49:35 +0530 Subject: [PATCH] chore: fix status-go versioning script (#21276) --- scripts/update-status-go.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-status-go.sh b/scripts/update-status-go.sh index ed7e9b3cc9..eb2912ab5a 100755 --- a/scripts/update-status-go.sh +++ b/scripts/update-status-go.sh @@ -29,7 +29,7 @@ identify_git_sha() { STATUS_GO_MATCHING_REFS=$(git ls-remote ${REPO_URL} ${1}) # It's possible that there's both a branch and a tag matching the given version - STATUS_GO_TAG_SHA1=$(echo "${STATUS_GO_MATCHING_REFS}" | grep 'refs/tags' | cut -f1) + STATUS_GO_TAG_SHA1=$(echo "${STATUS_GO_MATCHING_REFS}" | grep "refs/tags/${1}" | cut -f1) STATUS_GO_BRANCH_SHA1=$(echo "${STATUS_GO_MATCHING_REFS}" | grep 'refs/heads' | cut -f1) # Prefer tag over branch if both are found