Skip to content

Commit

Permalink
Clarify what type of reference we are trying to push. (#2279)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeMathWalker authored Feb 2, 2023
1 parent 2a913a7 commit 36d3116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/get-or-create-release-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fi
echo "release_branch=${branch_name}" >"${output_file}"

if [[ "${DRY_RUN}" == "true" ]]; then
git push --force origin "HEAD:${branch_name}"
git push --force origin "HEAD:refs/heads/${branch_name}"
else
commit_sha=$(git rev-parse --short HEAD)
if git ls-remote --exit-code --heads origin "${branch_name}"; then
Expand Down

0 comments on commit 36d3116

Please sign in to comment.