aboutsummaryrefslogtreecommitdiff
path: root/t/t7201-co.sh
diff options
context:
space:
mode:
authorJohan Herland <johan@herland.net>2013-04-21 23:52:03 +0200
committerJunio C Hamano <gitster@pobox.com>2013-04-21 15:14:41 -0700
commit88a9f72fe0f2ae3243b3d7a53dddf856cde48aca (patch)
tree4f387cf79af72bf549565b18209cb8ec99b1c5de /t/t7201-co.sh
parent9c9cd39a0c9bc1f14e9dfc29ad98475794dda6b8 (diff)
downloadgit-88a9f72fe0f2ae3243b3d7a53dddf856cde48aca.tar.gz
git-88a9f72fe0f2ae3243b3d7a53dddf856cde48aca.tar.xz
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>
Diffstat (limited to 't/t7201-co.sh')
-rwxr-xr-xt/t7201-co.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t7201-co.sh b/t/t7201-co.sh
index be9672e5a..0c9ec0ad4 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 &&