]> git.ipfire.org Git - thirdparty/git.git/commit
connect: detect algorithm when fetching refs
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 25 May 2020 19:59:00 +0000 (19:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 May 2020 17:07:06 +0000 (10:07 -0700)
commit7c601dc333b6cd86a84e77f41c968a3bb773ba36
treeef321ba10247a91b05be0cfccbe2e87a8d845822
parent48bf1415896db0f890530dcd182f33c2f0df10a8
connect: detect algorithm when fetching refs

If we're fetching refs, detect the hash algorithm and parse the refs
using that algorithm.

As mentioned in the documentation, if multiple versions of the
object-format capability are provided, we use the first.  No known
implementation supports multiple algorithms now, but they may in the
future.

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