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 usermain
commit
d03b07e2a9
|
@ -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' '
|
||||
git clone --upload-pack="GIT_TEST_ASSUME_DIFFERENT_OWNER=true git-upload-pack" \
|
||||
--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.
|
||||
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' '
|
||||
|
|
Loading…
Reference in New Issue