Code

Revert "git-pull: refuse default merge without branch.*.merge"
authorJunio C Hamano <junkio@cox.net>
Fri, 22 Dec 2006 06:10:56 +0000 (22:10 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 22 Dec 2006 06:12:42 +0000 (22:12 -0800)
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.<current>.merge.  With that broken commit, pulling
from origin no longer would work.

git-parse-remote.sh

index ea7511e8a0f18a3402146ce8acc1c051fc92475f..871c08f0973826f96490835dd029b47c64768a53 100755 (executable)
@@ -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