···156test_expect_success 'cloning a local path with --no-local from a different user succeeds' '
157 git clone --upload-pack="GIT_TEST_ASSUME_DIFFERENT_OWNER=true git-upload-pack" \
158 --no-local a nonlocal-otheruser 2>err &&
159- ! repo_is_hardlinked nonlocal-otheruser &&
160 # Verify that this is a git repository.
161 git -C nonlocal-otheruser rev-parse --show-toplevel &&
162- ! test_grep "detected dubious ownership" err
163-164'
165166test_expect_success 'cloning locally respects "-u" for fetching refs' '
···156test_expect_success 'cloning a local path with --no-local from a different user succeeds' '
157 git clone --upload-pack="GIT_TEST_ASSUME_DIFFERENT_OWNER=true git-upload-pack" \
158 --no-local a nonlocal-otheruser 2>err &&
159+ ! repo_is_hardlinked nonlocal-otheruser/.git &&
160 # Verify that this is a git repository.
161 git -C nonlocal-otheruser rev-parse --show-toplevel &&
162+ test_grep ! "detected dubious ownership" err
0163'
164165test_expect_success 'cloning locally respects "-u" for fetching refs' '