sha1_file: add repository argument to map_sha1_file