sha1_file: allow sha1_loose_object_info to handle arbitrary repositories