t7201.24: Add refspec to keep --track working
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>
Johan Herland committed
Apr 21, 2013 at 23:52 UTC
88a9f72fe0f2ae3243b3d7a53dddf856cde48aca
1 file changed
+1
t/t7201-co.sh
+1
@@ -431,6 +431,7 @@ test_expect_success 'detach a symbolic link HEAD' '
431
432
test_expect_success \
433
'checkout with --track fakes a sensible -b <name>' '
434
+ git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" &&
435
git update-ref refs/remotes/origin/koala/bear renamer &&
436
437
git checkout --track origin/koala/bear &&