diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-05-07 12:47:42 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-07 12:47:42 +0900 |
commit | 39c5392d68222be6144839a9b1929ceb73e77c89 (patch) | |
tree | 2db16ef42d871bcdbb5dbb56128d9cedac79f96b | |
parent | Merge branch 'si/zsh-complete-comment-fix' (diff) | |
parent | t5601: mark protocol v2-only test (diff) | |
download | tgif-39c5392d68222be6144839a9b1929ceb73e77c89.tar.xz |
Merge branch 'll/clone-reject-shallow'
Fix tests when forced to use v0 protocol.
* ll/clone-reject-shallow:
t5601: mark protocol v2-only test
-rwxr-xr-x | t/t5601-clone.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index 329ae599fd..c0688467e7 100755 --- a/t/t5601-clone.sh +++ b/t/t5601-clone.sh @@ -762,7 +762,7 @@ test_expect_success 'partial clone using HTTP' ' test_expect_success 'reject cloning shallow repository using HTTP' ' test_when_finished "rm -rf repo" && git clone --bare --no-local --depth=1 src "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" && - test_must_fail git clone --reject-shallow $HTTPD_URL/smart/repo.git repo 2>err && + test_must_fail git -c protocol.version=2 clone --reject-shallow $HTTPD_URL/smart/repo.git repo 2>err && test_i18ngrep -e "source repository is shallow, reject to clone." err && git clone --no-reject-shallow $HTTPD_URL/smart/repo.git repo |