Skip to content

Commit aa98285

Browse files
trastgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 61821aa commit aa98285

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

t/t5510-fetch.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -430,14 +430,16 @@ test_expect_success 'fetch --dry-run' '
430430
'
431431

432432
test_expect_success "should be able to fetch with duplicate refspecs" '
433-
mkdir dups &&
434-
cd dups &&
435-
git init &&
436-
git config branch.master.remote three &&
437-
git config remote.three.url ../three/.git &&
438-
git config remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
439-
git config --add remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
440-
git fetch three
433+
mkdir dups &&
434+
(
435+
cd dups &&
436+
git init &&
437+
git config branch.master.remote three &&
438+
git config remote.three.url ../three/.git &&
439+
git config remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
440+
git config --add remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
441+
git fetch three
442+
)
441443
'
442444

443445
test_done

0 commit comments

Comments
 (0)