Use 'main' as default branch in services-to-main.sh. (#6330)

This commit is contained in:
Emanuel Schütze 2022-01-13 19:10:34 +01:00 committed by GitHub
parent ff13c99818
commit e3ad7d2e1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ function get_upstream_branch {
return
fi;
local BRANCH_NAME=master
local BRANCH_NAME=main
local exists=`git show-ref refs/heads/$BRANCH_NAME`
if [[ -z $exists ]]; then
BRANCH_NAME=main
@ -52,4 +52,4 @@ echo "Successfully updated all submodules to latest commit."
# '
# git checkout $(git config -f $$toplevel/.gitmodules submodule.$$name.branch || echo main);
# git pull upstream $$(git config -f $$toplevel/.gitmodules submodule.$$name.branch || echo main)
# '
# '