Skip to content

Commit 8fc7003

Browse files
bk2204gitster
authored andcommitted
t5702: offer an object-format capability in the test
In order to make this test work with SHA-256, offer an object-format capability so that both sides use the same algorithm. Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 54cbbe4 commit 8fc7003

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/t5702-protocol-v2.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ start_git_daemon --export-all --enable=receive-pack
1313
daemon_parent=$GIT_DAEMON_DOCUMENT_ROOT_PATH/parent
1414

1515
test_expect_success 'create repo to be served by git-daemon' '
16+
test_oid_init &&
1617
git init "$daemon_parent" &&
1718
test_commit -C "$daemon_parent" one
1819
'
@@ -394,6 +395,7 @@ test_expect_success 'even with handcrafted request, filter does not work if not
394395
# Custom request that tries to filter even though it is not advertised.
395396
test-tool pkt-line pack >in <<-EOF &&
396397
command=fetch
398+
object-format=$(test_oid algo)
397399
0001
398400
want $(git -C server rev-parse master)
399401
filter blob:none

0 commit comments

Comments
 (0)