Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t5513-fetch-track.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t5513-fetch-track.sh` 30 lines ยท 555 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='fetch follows remote-tracking branches correctly' 4 5 . ./test-lib.sh 6 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 && 16 ( 17 cd other && 18 git config remote.origin.url .. && 19 git config remote.origin.fetch "+refs/heads/b/*:refs/remotes/b/*" 20 ) 21 ' 22 23 test_expect_success fetch ' 24 ( 25 cd other && git fetch origin && 26 test "$(git for-each-ref --format="%(refname)")" = refs/remotes/b/one 27 ) 28 ' 29 30 test_done