connect: pass full packet reader when parsing v2 refs
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 25 May 2020 19:59:15 +0000 (19:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 May 2020 17:07:07 +0000 (10:07 -0700)
commit67e9a70741c577b6e49bd60556779c7ab32ae4f8
tree68b0791409b158f1853d803ca0bb221f229b5992
parent7f46e7ead1d82538866265228f9d743f0e93e17a
connect: pass full packet reader when parsing v2 refs

When we're parsing refs, we need to know not only what the line we're
parsing is, but also the hash algorithm we should use to parse it, which
is stored in the reader object.  Pass the packet reader object through
to the protocol v2 ref parsing function.

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