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
main
Junio C Hamano 2025-04-15 13:50:17 -07:00
commit d03b07e2a9
1 changed files with 2 additions and 3 deletions

View File

@ -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' '