]> git.ipfire.org Git - thirdparty/git.git/commit
connect: parse v2 refs with correct hash algorithm
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 25 May 2020 19:59:16 +0000 (19:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 May 2020 17:07:07 +0000 (10:07 -0700)
commitab67235bc4900d8203a1a6b6f33cf8afa845e43e
tree978d03910cc8cd4399e18b07e90fa0b6b973c262
parent67e9a70741c577b6e49bd60556779c7ab32ae4f8
connect: parse v2 refs with correct hash algorithm

When using protocol v2, we need to know what hash algorithm is used by
the remote end.  See if the server has sent us an object-format
capability, and if so, use it to determine the hash algorithm in use and
set that value in the packet reader.  Parse the refs using this
algorithm.

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