]> git.ipfire.org Git - thirdparty/git.git/commit
conversion: don't crash when no destination algo
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sat, 7 Feb 2026 20:04:32 +0000 (20:04 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 8 Feb 2026 01:41:01 +0000 (17:41 -0800)
commit9c317a68b7abc82a9c3c024baa318a29da970c4f
tree4a295e1da8eba4f7901f9b1e464b670a3a24d250
parent13ecc938422b204170a3276edb427e0ff38e3670
conversion: don't crash when no destination algo

When we set up a repository that doesn't have a compatibility hash
algorithm, we set the destination algorithm object to NULL.  In such a
case, we want to silently do nothing instead of crashing, so simply
treat the operation as a no-op and copy the object ID.

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