refs/files-backend: use the_hash_algo for writing refs
commit2ae2e2a1ca6e0042ff163920de95884e8ff45142
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 16 Jul 2018 01:27:59 +0000 (16 01:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Jul 2018 21:27:39 +0000 (16 14:27 -0700)
tree606a1e8becc686ff18fb35051c105874e5bcf8f6
parent7b38efad5ed4417defaefe04d64adc7d4b55a66e
refs/files-backend: use the_hash_algo for writing refs

In order to ensure we write the correct amount, use the_hash_algo to
find the correct number of bytes for the current hash.

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