]> git.ipfire.org Git - thirdparty/git.git/commit
protocol-caps: use hash algorithm from passed-in repository
authorPatrick Steinhardt <ps@pks.im>
Fri, 14 Jun 2024 06:50:47 +0000 (08:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Jun 2024 17:26:34 +0000 (10:26 -0700)
commit58650befd9c99ab3ec4e946d5b3a50559e5ad309
treed0dd3d95f1d0de357ae9a529c86a150305c9b743
parentf2c32a66f508586a9233dc6eac27bc4689e67dc1
protocol-caps: use hash algorithm from passed-in repository

In `send_info()`, we pass in a repository but then use `get_oid_hex()`
to parse passed-in object IDs, which implicitly uses `the_repository`.
Fix this by using the hash algorithm from the passed-in repository
instead.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
protocol-caps.c