Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 88a9f72

Browse files
jherlandgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9c9cd39 commit 88a9f72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/t7201-co.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ test_expect_success 'detach a symbolic link HEAD' '
431431

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

0 commit comments

Comments
 (0)