Skip to content
This repository was archived by the owner on Nov 27, 2017. It is now read-only.

Commit 7d148dc

Browse files
committed
update: use --replace-all to set remote.origin.fetch
Otherwise, it will fail on users who have multiple entries on remote.origin.fetch.
1 parent 6146a1c commit 7d148dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Library/Homebrew/cmd/update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ git_init_if_necessary() {
3131
set -e
3232
git config --bool core.autocrlf false
3333
git config --replace-all remote.origin.url "$OFFICIAL_REMOTE"
34-
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
34+
git config --replace-all remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
3535
git fetch --force --depth=1 origin refs/heads/master:refs/remotes/origin/master
3636
git reset --hard origin/master
3737
git gc --auto

0 commit comments

Comments
 (0)