From: Johan Herland Date: Sun, 21 Apr 2013 21:52:03 +0000 (+0200) Subject: t7201.24: Add refspec to keep --track working X-Git-Tag: v1.8.3.2~16^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88a9f72fe0f2ae3243b3d7a53dddf856cde48aca;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t7201-co.sh b/t/t7201-co.sh index be9672e5a0..0c9ec0ad44 100755 --- a/t/t7201-co.sh +++ b/t/t7201-co.sh @@ -431,6 +431,7 @@ test_expect_success 'detach a symbolic link HEAD' ' test_expect_success \ 'checkout with --track fakes a sensible -b ' ' + 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 &&