git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
9a116c68dff10e9102dc69b732a0f7175f00dca0 blob 520 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
#!/bin/sh

test_description='stateless upload-pack gently handles EOF just after want/shallow/depth/flush'

. ./test-lib.sh

test_expect_success 'upload-pack outputs flush and exits ok' '
	test_commit initial &&
	head=$(git rev-parse HEAD) &&
	hexsz=$(test_oid hexsz) &&

	printf "%04xwant %s\n%04xshallow %s\n000ddeepen 1\n0000" \
		$(($hexsz + 10)) $head $(($hexsz + 13)) $head >request &&

	git upload-pack --stateless-rpc "$(pwd)" <request >actual &&

	printf "0000" >expect &&

	test_cmp expect actual
'

test_done
debug log:

solving 9a116c6 ...
found 9a116c6 in https://public-inbox.org/git/1604029402-19593-1-git-send-email-dan@mutual.io/

applying [1/1] https://public-inbox.org/git/1604029402-19593-1-git-send-email-dan@mutual.io/
diff --git a/t/t9904-upload-pack-stateless-timely-eof.sh b/t/t9904-upload-pack-stateless-timely-eof.sh
new file mode 100755
index 0000000..9a116c6

Checking patch t/t9904-upload-pack-stateless-timely-eof.sh...
Applied patch t/t9904-upload-pack-stateless-timely-eof.sh cleanly.

index at:
100755 9a116c68dff10e9102dc69b732a0f7175f00dca0	t/t9904-upload-pack-stateless-timely-eof.sh

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).