Unverified Commit 36d3116e authored by Luca Palmieri's avatar Luca Palmieri Committed by GitHub
Browse files

Clarify what type of reference we are trying to push. (#2279)

parent 2a913a72
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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