rerere: libify rerere_clear() and rerere_gc()
[git/jnareb-git.git] / t / t5513-fetch-track.sh
blob65d1e05bd62af9c2b6dfa6cdd841d03622bf94ac
1 #!/bin/sh
3 test_description='fetch follows remote-tracking branches correctly'
5 . ./test-lib.sh
7 test_expect_success setup '
8 >file &&
9 git add . &&
10 test_tick &&
11 git commit -m Initial &&
12 git branch b-0 &&
13 git branch b1 &&
14 git branch b/one &&
15 test_create_repo other &&
17 cd other &&
18 git config remote.origin.url .. &&
19 git config remote.origin.fetch "+refs/heads/b/*:refs/remotes/b/*"
23 test_expect_success fetch '
25 cd other && git fetch origin &&
26 test "$(git for-each-ref --format="%(refname)")" = refs/remotes/b/one
30 test_done