diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-11-18 13:32:51 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-18 13:32:51 -0800 |
commit | d1169be31a6d7b48471c624326296f4faf740548 (patch) | |
tree | 4a7e6c8e94b0a74908f8b0605f1137fbfe6d3bdc /t | |
parent | Fifth batch (diff) | |
parent | upload-pack: allow stateless client EOF just prior to haves (diff) | |
download | tgif-d1169be31a6d7b48471c624326296f4faf740548.tar.xz |
Merge branch 'dd/upload-pack-stateless-eof'
"git fetch --depth=<n>" over the stateless RPC / smart HTTP
transport handled EOF from the client poorly at the server end.
* dd/upload-pack-stateless-eof:
upload-pack: allow stateless client EOF just prior to haves
Diffstat (limited to 't')
-rwxr-xr-x | t/t5530-upload-pack-error.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/t/t5530-upload-pack-error.sh b/t/t5530-upload-pack-error.sh index 205a2631e7..9dd2d2457a 100755 --- a/t/t5530-upload-pack-error.sh +++ b/t/t5530-upload-pack-error.sh @@ -88,6 +88,23 @@ test_expect_success 'upload-pack fails due to error in pack-objects enumeration' grep "pack-objects died" output.err ' +test_expect_success 'upload-pack tolerates EOF just after stateless client wants' ' + test_commit initial && + head=$(git rev-parse HEAD) && + + { + packetize "want $head" && + packetize "shallow $head" && + packetize "deepen 1" && + printf "0000" + } >request && + + printf "0000" >expect && + + git upload-pack --stateless-rpc . <request >actual && + test_cmp expect actual +' + test_expect_success 'create empty repository' ' mkdir foo && |