sha1_file: add repository argument to prepare_alt_odb