forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
George Gensure
committed
Apr 6, 2020
1 parent
eca40ab
commit aa700e7
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,10 +22,10 @@ set -eu | |
: ${EDITOR=vi} | ||
|
||
# Repositories to push the release branch and the release tag. | ||
RELEASE_REPOSITORY="[email protected]:bazelbuild/bazel" | ||
RELEASE_REPOSITORY="[email protected]:werkt/bazel" | ||
|
||
# Repositories to push the master branch. | ||
MASTER_REPOSITORY="https://bazel.googlesource.com/bazel" | ||
MASTER_REPOSITORY=${RELEASE_REPOSITORY} | ||
|
||
# Author of the release commits. | ||
RELEASE_AUTHOR="Bazel Release System <[email protected]>" | ||
|
@@ -139,7 +139,7 @@ function __create_release() { | |
local release_name="$1" | ||
local baseline="$2" | ||
shift 2 | ||
local branch_name="release-${release_name}rc${force_rc}" | ||
local branch_name="release-${release_name}-rc${force_rc}" | ||
|
||
# Fetch everything from remote repositories to avoid conflicts | ||
git fetch -f "${RELEASE_REPOSITORY}" | ||
|
@@ -179,7 +179,7 @@ function __push_release_candidate() { | |
function __cleanup_branches() { | ||
local tag_name=$1 | ||
echo "Destroying the release branches for release ${tag_name}" | ||
for branch in $(git branch | grep -Po "release-${tag_name}rc([0-9])*") | ||
for branch in $(git branch | grep -Po "release-${tag_name}-rc([0-9])*") | ||
do | ||
echo "Deleting ${branch}" | ||
git branch -D "${branch}" &>/dev/null || true | ||
|