Merge branch 'bc/allow-upload-pack-from-other-people'
Test fix for an already graduated topic. * bc/allow-upload-pack-from-other-people: t5605: fix test for cloning from a different user
This commit is contained in:
@@ -156,11 +156,10 @@ test_expect_success 'cloning a local path with --no-local does not hardlink' '
|
|||||||
test_expect_success 'cloning a local path with --no-local from a different user succeeds' '
|
test_expect_success 'cloning a local path with --no-local from a different user succeeds' '
|
||||||
git clone --upload-pack="GIT_TEST_ASSUME_DIFFERENT_OWNER=true git-upload-pack" \
|
git clone --upload-pack="GIT_TEST_ASSUME_DIFFERENT_OWNER=true git-upload-pack" \
|
||||||
--no-local a nonlocal-otheruser 2>err &&
|
--no-local a nonlocal-otheruser 2>err &&
|
||||||
! repo_is_hardlinked nonlocal-otheruser &&
|
! repo_is_hardlinked nonlocal-otheruser/.git &&
|
||||||
# Verify that this is a git repository.
|
# Verify that this is a git repository.
|
||||||
git -C nonlocal-otheruser rev-parse --show-toplevel &&
|
git -C nonlocal-otheruser rev-parse --show-toplevel &&
|
||||||
! test_grep "detected dubious ownership" err
|
test_grep ! "detected dubious ownership" err
|
||||||
|
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'cloning locally respects "-u" for fetching refs' '
|
test_expect_success 'cloning locally respects "-u" for fetching refs' '
|
||||||
|
|||||||
Reference in New Issue
Block a user