3 test_description
='fetch follows remote-tracking branches correctly'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success setup
'
12 git commit -m Initial &&
16 test_create_repo other &&
19 git config remote.origin.url .. &&
20 git config remote.origin.fetch "+refs/heads/b/*:refs/remotes/b/*"
24 test_expect_success fetch
'
26 cd other && git fetch origin &&
27 test "$(git for-each-ref --format="%(refname)")" = refs/remotes/b/one