@ -543,13 +543,24 @@ test_expect_success 'fetch into the current branch with --update-head-ok' '
@@ -543,13 +543,24 @@ test_expect_success 'fetch into the current branch with --update-head-ok' '
'
test_expect_success 'fetch --dry-run' '
test_expect_success 'fetch --dry-run does not touch FETCH_HEAD' '
rm -f .git/FETCH_HEAD &&
git fetch --dry-run . &&
! test -f .git/FETCH_HEAD
'
test_expect_success '--no-write-fetch-head does not touch FETCH_HEAD' '
rm -f .git/FETCH_HEAD &&
git fetch --no-write-fetch-head . &&
! test -f .git/FETCH_HEAD
'
test_expect_success '--write-fetch-head gets defeated by --dry-run' '
rm -f .git/FETCH_HEAD &&
git fetch --dry-run --write-fetch-head . &&
! test -f .git/FETCH_HEAD
'
test_expect_success "should be able to fetch with duplicate refspecs" '