sha1-name.c: remove the_repo from get_oid_1()