Skip to content

Commit

Permalink
t7201.24: Add refspec to keep --track working
Browse files Browse the repository at this point in the history
We are formalizing a requirement that any remote-tracking branch to be used
as an upstream (i.e. as an argument to --track), _must_ "belong" to a
configured remote by being matched by the "dst" side of a fetch refspec.

Without this patch, this test would start failing when the new behavior is
introduced.

Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Johan Herland authored and Junio C Hamano committed Apr 21, 2013
1 parent 9c9cd39 commit 88a9f72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/t7201-co.sh
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ test_expect_success 'detach a symbolic link HEAD' '

test_expect_success \
'checkout with --track fakes a sensible -b <name>' '
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" &&
git update-ref refs/remotes/origin/koala/bear renamer &&
git checkout --track origin/koala/bear &&
Expand Down

0 comments on commit 88a9f72

Please sign in to comment.