Use 'main' as default branch in services-to-main.sh. (#6330)
This commit is contained in:
parent
ff13c99818
commit
e3ad7d2e1f
@ -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)
|
||||
# '
|
||||
# '
|
||||
|
Loading…
Reference in New Issue
Block a user