sha1-file: pass git_hash_algo to hash_object_file()