From 9e11554917d391c18e043bc0b38ee0377e69568e Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 21 Dec 2006 22:10:56 -0800 Subject: Revert "git-pull: refuse default merge without branch.*.merge" This reverts commit a71fb0a1412c82405f078fb536797d3f5de68d53. The logic to decide when to refuse to use the default "first set of refs fetched" for merge was utterly bogus. In a repository that happily worked correctly without any of the per-branch configuration crap did not have (and did not have to have) any branch..merge. With that broken commit, pulling from origin no longer would work. diff --git a/git-parse-remote.sh b/git-parse-remote.sh index ea7511e..871c08f 100755 --- a/git-parse-remote.sh +++ b/git-parse-remote.sh @@ -141,8 +141,7 @@ canon_refs_list_for_fetch () { curr_branch=$(git-symbolic-ref HEAD | \ sed -e 's|^refs/heads/||') merge_branches=$(git-repo-config \ - --get-all "branch.${curr_branch}.merge") || - merge_branches=.this.would.never.match.any.ref. + --get-all "branch.${curr_branch}.merge") fi set x $(expand_refs_wildcard "$@") shift -- cgit v0.10.2-6-g49f6