sha1_file: add repository argument to sha1_loose_object_info