sha1_file: add repository argument to stat_sha1_file