We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
refs/remote/<remote-name>/<branch-name>
1 parent e2023b9 commit 649ae55Copy full SHA for 649ae55
.github/scripts/get-or-create-release-branch.sh
@@ -59,7 +59,7 @@ else
59
commit_sha=$(git rev-parse --short HEAD)
60
if git ls-remote --exit-code --heads origin "${branch_name}"; then
61
# The release branch already exists, we need to make sure that our commit is its current tip
62
- branch_head_sha=$(git rev-parse --verify --short "refs/heads/${branch_name}")
+ branch_head_sha=$(git rev-parse --verify --short "refs/remotes/origin/${branch_name}")
63
if [[ "${branch_head_sha}" != "${commit_sha}" ]]; then
64
echo "The release branch - ${branch_name} - already exists. ${commit_sha}, the commit you chose when "
65
echo "launching this release, is not its current HEAD (${branch_head_sha}). This is not allowed: you "
0 commit comments