sha1_file: add repository argument to link_alt_odb_entry