]> git.ipfire.org Git - thirdparty/git.git/commit
t5704: send object-format capability with SHA-256
authorbrian m. carlson <sandals@crustytoothpaste.net>
Fri, 19 Jun 2020 17:55:58 +0000 (17:55 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Jun 2020 21:04:09 +0000 (14:04 -0700)
commit4ddd3f506390af217fb86508691cf07f3279e6d2
tree76dd1be851c4bcd3c542c50f7efc5236665eeb1d
parentf7c6a3bf080aae499e0aa0c69aa0d86423bd24f8
t5704: send object-format capability with SHA-256

When we speak protocol v2 in this test, we must pass the object-format
header if the algorithm is not SHA-1.  Otherwise, git upload-pack fails
because the hash algorithm doesn't match and not because we've failed to
speak the protocol correctly.  Pass the header so that our assertions
test what we're really interested in.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5704-protocol-violations.sh