builtin/update-index: convert to using the_hash_algo