t5510: ensure we stay in the toplevel test dir
The last test descended into a subdir without ever re-emerging, which is not so nice to the next test writer. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
61821aaa12
commit
aa9828561e
@ -430,14 +430,16 @@ test_expect_success 'fetch --dry-run' '
|
|||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success "should be able to fetch with duplicate refspecs" '
|
test_expect_success "should be able to fetch with duplicate refspecs" '
|
||||||
mkdir dups &&
|
mkdir dups &&
|
||||||
cd dups &&
|
(
|
||||||
git init &&
|
cd dups &&
|
||||||
git config branch.master.remote three &&
|
git init &&
|
||||||
git config remote.three.url ../three/.git &&
|
git config branch.master.remote three &&
|
||||||
git config remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
|
git config remote.three.url ../three/.git &&
|
||||||
git config --add remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
|
git config remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
|
||||||
git fetch three
|
git config --add remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
|
||||||
|
git fetch three
|
||||||
|
)
|
||||||
'
|
'
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
Loading…
Reference in New Issue
Block a user