sha1-name: use the_hash_algo when parsing object names