t5703: use object-format serve option
commitf7c6a3bf080aae499e0aa0c69aa0d86423bd24f8
authorbrian m. carlson <sandals@crustytoothpaste.net>
Fri, 19 Jun 2020 17:55:57 +0000 (19 17:55 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Jun 2020 21:04:09 +0000 (19 14:04 -0700)
tree787421eafc6b31da99ebd9e19d131f5526e6b956
parent8fc700354045ccf1eb3c10fe0f7d6cb2c6427628
t5703: use object-format serve option

When we're using an algorithm other than SHA-1, we need to specify the
algorithm in use so we don't get a failure with an "unknown format"
message. Add a wrapper function that specifies this header if required.
Skip specifying this header for SHA-1 to test that it works both with an
without this header.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5703-upload-pack-ref-in-want.sh