Skip to content

Commit

Permalink
Revert "git-pull: refuse default merge without branch.*.merge"
Browse files Browse the repository at this point in the history
This reverts commit a71fb0a.

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.
  • Loading branch information
Junio C Hamano committed Dec 22, 2006
1 parent 64646d1 commit 9e11554
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions git-parse-remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e11554

Please sign in to comment.