sha1-name.c: remove the_repo from other get_oid_*