File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -993,15 +993,16 @@ ohai "Downloading and installing Homebrew..."
993
993
execute " ${MKDIR[@]} " " ${HOMEBREW_CORE} "
994
994
cd " ${HOMEBREW_CORE} " > /dev/null || return
995
995
996
- execute " ${USABLE_GIT} " " -c" " init.defaultBranch=master " " init" " --quiet"
996
+ execute " ${USABLE_GIT} " " -c" " init.defaultBranch=main " " init" " --quiet"
997
997
execute " ${USABLE_GIT} " " config" " remote.origin.url" " ${HOMEBREW_CORE_GIT_REMOTE} "
998
998
execute " ${USABLE_GIT} " " config" " remote.origin.fetch" " +refs/heads/*:refs/remotes/origin/*"
999
+ execute " ${USABLE_GIT} " " config" " --bool" " fetch.prune" " true"
999
1000
execute " ${USABLE_GIT} " " config" " --bool" " core.autocrlf" " false"
1000
1001
execute " ${USABLE_GIT} " " config" " --bool" " core.symlinks" " true"
1001
1002
retry 5 " ${USABLE_GIT} " " fetch" " --force" " ${quiet_progress[@]} " \
1002
- " origin" " refs/heads/master :refs/remotes/origin/master "
1003
+ " origin" " refs/heads/main :refs/remotes/origin/main "
1003
1004
execute " ${USABLE_GIT} " " remote" " set-head" " origin" " --auto" > /dev/null
1004
- execute " ${USABLE_GIT} " " reset" " --hard" " origin/master "
1005
+ execute " ${USABLE_GIT} " " reset" " --hard" " origin/main "
1005
1006
1006
1007
cd " ${HOMEBREW_REPOSITORY} " > /dev/null || return
1007
1008
) || exit 1
You can’t perform that action at this time.
0 commit comments