]> git.ipfire.org Git - thirdparty/git.git/commit - bundle.h
bundle: detect hash algorithm when reading refs
authorbrian m. carlson <sandals@crustytoothpaste.net>
Fri, 19 Jun 2020 17:56:00 +0000 (17:56 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Jun 2020 21:04:09 +0000 (14:04 -0700)
commit6161ce7bbeeb128dd1a176d8355e2ce18168b16a
treef501691afda185e462ed8be61f945707734f9715
parent371c4079f4d14bd9412fc62478407b319f13e3e1
bundle: detect hash algorithm when reading refs

Much like with the dumb HTTP transport, there isn't a way to explicitly
specify the hash algorithm when dealing with a bundle, so detect the
algorithm based on the length of the object IDs in the prerequisites and
ref advertisements.

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