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

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

test_description='tests for long running read-object process passing git objects'

. ./test-lib.sh

PATH="$PATH:$TEST_DIRECTORY/t0560"

test_expect_success 'setup host repo with a root commit' '
	test_commit zero &&
	hash1=$(git ls-tree HEAD | grep zero.t | cut -f1 | cut -d\  -f3)
'

HELPER="read-object-git"

test_expect_success 'blobs can be retrieved from the host repo' '
	git init guest-repo &&
	(cd guest-repo &&
	 git config odb.magic.subprocessCommand "$HELPER" &&
	 git cat-file blob "$hash1" >/dev/null)
'

test_expect_success 'invalid blobs generate errors' '
	cd guest-repo &&
	test_must_fail git cat-file blob "invalid"
'

test_done
debug log:

solving 4e8fc04dfd ...
found 4e8fc04dfd in https://public-inbox.org/git/20180319133147.15413-31-chriscool@tuxfamily.org/

applying [1/1] https://public-inbox.org/git/20180319133147.15413-31-chriscool@tuxfamily.org/
diff --git a/t/t0560-read-object-git.sh b/t/t0560-read-object-git.sh
new file mode 100755
index 0000000000..4e8fc04dfd

Checking patch t/t0560-read-object-git.sh...
Applied patch t/t0560-read-object-git.sh cleanly.

index at:
100755 4e8fc04dfd012ac14f0124a35a09f4bf4d57999c	t/t0560-read-object-git.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).