sha1_file: allow sha1_file_name to handle arbitrary repositories