send-pack: detect when the server doesn't support our hash
commit82db03abbbce3cfe28f42a16a16c2b5723974954
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 25 May 2020 19:58:57 +0000 (25 19:58 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 May 2020 17:07:06 +0000 (27 10:07 -0700)
tree8b4c6ef2249d6127c1fda0089d76358010d4ac40
parent122037c2edec0c2bbcbfe52679fddc438165ab54
send-pack: detect when the server doesn't support our hash

Detect when the server doesn't support our hash algorithm and abort.
If the server does support our hash, advertise it as part of our
capabilities.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
send-pack.c