sha1_file: perform object replacement in sha1_object_info_extended()