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