Skip to content

Commit

Permalink
t5510: ensure we stay in the toplevel test dir
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Rast authored and Junio C Hamano committed Mar 1, 2012
1 parent 61821aa commit aa98285
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions t/t5510-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -430,14 +430,16 @@ test_expect_success 'fetch --dry-run' '
'

test_expect_success "should be able to fetch with duplicate refspecs" '
mkdir dups &&
cd dups &&
git init &&
git config branch.master.remote three &&
git config remote.three.url ../three/.git &&
git config remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
git config --add remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
git fetch three
mkdir dups &&
(
cd dups &&
git init &&
git config branch.master.remote three &&
git config remote.three.url ../three/.git &&
git config remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
git config --add remote.three.fetch +refs/heads/*:refs/remotes/origin/* &&
git fetch three
)
'

test_done

0 comments on commit aa98285

Please sign in to comment.