@matheusbsbs / matheus-bagliano / commits / 8fc7003540
Fork 0

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 <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed Jun 19, 2020 at 17:55 UTC 8fc700354045ccf1eb3c10fe0f7d6cb2c6427628
1 file changed +2
t/t5702-protocol-v2.sh
+2
@@ -13,6 +13,7 @@ start_git_daemon --export-all --enable=receive-pack
13 daemon_parent=$GIT_DAEMON_DOCUMENT_ROOT_PATH/parent
14
15 test_expect_success 'create repo to be served by git-daemon' '
16 + test_oid_init &&
17 git init "$daemon_parent" &&
18 test_commit -C "$daemon_parent" one
19 '
@@ -394,6 +395,7 @@ test_expect_success 'even with handcrafted request, filter does not work if not
395 # Custom request that tries to filter even though it is not advertised.
396 test-tool pkt-line pack >in <<-EOF &&
397 command=fetch
398 + object-format=$(test_oid algo)
399 0001
400 want $(git -C server rev-parse master)
401 filter blob:none