Skip to content

Commit

Permalink
Bazel release process: Fix push justification.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 571350496
Change-Id: I95f5a1ef32ba1df4dad7ebb9c25bf87333bc25ff
  • Loading branch information
fweikert authored and copybara-github committed Oct 6, 2023
1 parent 555d7e5 commit 4640435
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function __create_release() {
# Force push a ref $2 to repo $1 if exists
function __push_if_exists() {
if git show-ref -q "${2}"; then
git push -f "${1}" "+${2}" -o push-justification b/303672453
git push -f -o push-justification=b/303672453 "${1}" "+${2}"
fi
}

Expand All @@ -183,7 +183,7 @@ function __cleanup_branches() {
do
echo "Deleting ${branch}"
git branch -D "${branch}" &>/dev/null || true
git push -f "${RELEASE_REPOSITORY}" ":${branch}" -o push-justification b/303672453 &>/dev/null || true
git push -f -o push-justification=b/303672453 "${RELEASE_REPOSITORY}" ":${branch}" &>/dev/null || true
done
}

Expand Down Expand Up @@ -223,7 +223,7 @@ function __do_release() {
trap - EXIT

echo "Pushing the change to remote repositories"
git push "${MASTER_REPOSITORY}" +master -o push-justification b/303672453
git push -o push-justification=b/303672453 "${MASTER_REPOSITORY}" +master
__push_ref "refs/tags/${tag_name}"
fi
}
Expand Down

0 comments on commit 4640435

Please sign in to comment.