Use the final_oid_fn to finalize hashing of object IDs
commit5951bf467ea92458c3bea3051c8413041f3b27d5
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 26 Apr 2021 01:02:53 +0000 (26 01:02 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Apr 2021 07:31:38 +0000 (27 16:31 +0900)
treee26a68adea2c27c1fdc80c93ef0aff2cd71a494d
parentab795f0d77aec52496557eb69a5fc9e4f60ea1fd
Use the final_oid_fn to finalize hashing of object IDs

When we're hashing a value which is going to be an object ID, we want to
zero-pad that value if necessary.  To do so, use the final_oid_fn
instead of the final_fn anytime we're going to create an object ID to
ensure we perform this operation.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fast-import.c
builtin/index-pack.c
builtin/unpack-objects.c
bulk-checkin.c
diff.c
http.c
object-file.c