[PATCHv2 5/8] t7201.24: Add refspec to keep --track working
- From
Johan Herland <johan@herland.net>
- Date
- Apr 20, 2013, 15:06 UTC
- Message-ID
- <1366470363-22309-6-git-send-email-johan@herland.net>
- In-Reply-To
- <1366470363-22309-1-git-send-email-johan@herland.net>
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> --- t/t7201-co.sh | 1 + 1 file changed, 1 insertion(+)
diff --git a/t/t7201-co.sh b/t/t7201-co.sh index be9672e..0c9ec0a 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 <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 &&
-- 1.8.1.3.704.g33f7d4f