diff --git a/update_depot_tools b/update_depot_tools index 417b15d5a..677befa28 100755 --- a/update_depot_tools +++ b/update_depot_tools @@ -101,7 +101,7 @@ function update_git_repo { git fetch -q origin &> /dev/null local CHECKOUT_TXT STATUS - CHECKOUT_TXT=$(git checkout -q origin/master 2>&1) + CHECKOUT_TXT=$(git checkout -q origin/main 2>&1) STATUS=$? if [[ $STATUS -ne 0 ]]; then echo "depot_tools update failed. Conflict in $base_dir" >&2 diff --git a/update_depot_tools.bat b/update_depot_tools.bat index 4df4d44d8..11d8bc3e9 100644 --- a/update_depot_tools.bat +++ b/update_depot_tools.bat @@ -52,7 +52,7 @@ for /F %%x in ('git config --get remote.origin.url') DO ( ) ) call git fetch -q origin > NUL -call git checkout -q origin/master > NUL +call git checkout -q origin/main > NUL if errorlevel 1 ( echo Failed to update depot_tools. goto :EOF