Remove reference to an old branch.

Bug: webrtc:13788
Change-Id: I628b27f3b26aaaf77824cdadca0089e43f0e976b
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/253781
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Jeremy Leconte <jleconte@google.com>
Cr-Commit-Position: refs/heads/main@{#36139}
This commit is contained in:
Jeremy Leconte
2022-03-07 08:55:52 +01:00
committed by WebRTC LUCI CQ
parent 4abffda39f
commit 7befe8e5e4

View File

@ -36,7 +36,7 @@ NOTIFY_EMAIL = 'webrtc-trooper@webrtc.org'
def _RemovePreviousUpdateBranch(): def _RemovePreviousUpdateBranch():
active_branch, branches = _GetBranches() active_branch, branches = _GetBranches()
if active_branch == UPDATE_BRANCH_NAME: if active_branch == UPDATE_BRANCH_NAME:
active_branch = 'master' active_branch = 'main'
if UPDATE_BRANCH_NAME in branches: if UPDATE_BRANCH_NAME in branches:
logging.info('Removing previous update branch (%s)', UPDATE_BRANCH_NAME) logging.info('Removing previous update branch (%s)', UPDATE_BRANCH_NAME)
subprocess.check_call(['git', 'checkout', active_branch]) subprocess.check_call(['git', 'checkout', active_branch])