Skip to content

Commit

Permalink
Allow branch.*.merge to talk about remote tracking branches.
Browse files Browse the repository at this point in the history
People often get confused if the value of branch.*.merge should
be the remote branch name they are fetching from, or the
tracking branch they locally have.  So this allows either.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Dec 24, 2006
1 parent e036c90 commit 80c7977
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions git-parse-remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,12 @@ canon_refs_list_for_fetch () {
else
for merge_branch in $merge_branches
do
[ "$remote" = "$merge_branch" ] &&
dot_prefix= && break
if test "$remote" = "$merge_branch" ||
test "$local" = "$merge_branch"
then
dot_prefix=
break
fi
done
fi
case "$remote" in
Expand Down

0 comments on commit 80c7977

Please sign in to comment.