]> git.ipfire.org Git - thirdparty/git.git/commit - dir.c
dir: use the_hash_algo for empty blob object ID
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 2 May 2018 00:26:06 +0000 (00:26 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 May 2018 04:59:53 +0000 (13:59 +0900)
commitba2df7519afa4606fb97e1e83be41342b40bc451
tree503997b4624622309504d482d2ceaa73af92fa78
parent57911a31feae8d2cb065afa502b872235d43358e
dir: use the_hash_algo for empty blob object ID

To ensure that we are hash algorithm agnostic, use the_hash_algo to look
up the object ID for the empty blob instead of using the empty_tree_oid
variable.

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