Skip to content

Commit 39c5392

Browse files
committed
Merge branch 'll/clone-reject-shallow'
Fix tests when forced to use v0 protocol. * ll/clone-reject-shallow: t5601: mark protocol v2-only test
2 parents 70a890d + b89c731 commit 39c5392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5601-clone.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ test_expect_success 'partial clone using HTTP' '
762762
test_expect_success 'reject cloning shallow repository using HTTP' '
763763
test_when_finished "rm -rf repo" &&
764764
git clone --bare --no-local --depth=1 src "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
765-
test_must_fail git clone --reject-shallow $HTTPD_URL/smart/repo.git repo 2>err &&
765+
test_must_fail git -c protocol.version=2 clone --reject-shallow $HTTPD_URL/smart/repo.git repo 2>err &&
766766
test_i18ngrep -e "source repository is shallow, reject to clone." err &&
767767
768768
git clone --no-reject-shallow $HTTPD_URL/smart/repo.git repo

0 commit comments

Comments
 (0)