Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bazel release process: Fix broken "git push" by setting direct push j… #19747

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}"
git push -f "${1}" "+${2}" -o push-justification b/303672453
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}" &>/dev/null || true
git push -f "${RELEASE_REPOSITORY}" ":${branch}" -o push-justification b/303672453 &>/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
git push "${MASTER_REPOSITORY}" +master -o push-justification b/303672453
__push_ref "refs/tags/${tag_name}"
fi
}
Expand Down
Loading