Squashed 'third_party/git/' content from commit cb71568594
git-subtree-dir: third_party/git git-subtree-split: cb715685942260375e1eb8153b0768a376e4ece7
This commit is contained in:
commit
1b593e1ea4
3629 changed files with 1139935 additions and 0 deletions
30
t/t5513-fetch-track.sh
Executable file
30
t/t5513-fetch-track.sh
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
test_description='fetch follows remote-tracking branches correctly'
|
||||
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
>file &&
|
||||
git add . &&
|
||||
test_tick &&
|
||||
git commit -m Initial &&
|
||||
git branch b-0 &&
|
||||
git branch b1 &&
|
||||
git branch b/one &&
|
||||
test_create_repo other &&
|
||||
(
|
||||
cd other &&
|
||||
git config remote.origin.url .. &&
|
||||
git config remote.origin.fetch "+refs/heads/b/*:refs/remotes/b/*"
|
||||
)
|
||||
'
|
||||
|
||||
test_expect_success fetch '
|
||||
(
|
||||
cd other && git fetch origin &&
|
||||
test "$(git for-each-ref --format="%(refname)")" = refs/remotes/b/one
|
||||
)
|
||||
'
|
||||
|
||||
test_done
|
||||
Loading…
Add table
Add a link
Reference in a new issue