parse-remote: support default reflist in get_remote_merge_branch
authorSanti Béjar <santi@agolina.net>
Thu, 11 Jun 2009 22:39:19 +0000 (00:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jun 2009 02:50:34 +0000 (19:50 -0700)
Expand get_remote_merge_branch to compute the tracking branch to merge
when called without arguments (or only the remote name). This allows
"git pull --rebase" without arguments (default upstream branch) to
work with a rebased upstream. With explicit arguments it already worked.

Also add a test to check for this case.

Signed-off-by: Santi Béjar <santi@agolina.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found