def METHOD_NAME(self) -> None:
    print('Update submodule: {}: {}'.format(self.path, self.commit_id))
    path_name = self.gitlab_inst.METHOD_NAME(self.commit_id, SUBMODULE_ARCHIVE_TEMP_FOLDER,
                                                  self.project_id, SUBMODULE_ARCHIVE_CACHE_DIR)
    renamed_path = os.path.join(os.path.dirname(path_name), os.path.basename(self.path))
    os.rename(path_name, renamed_path)
    shutil.rmtree(self.path, ignore_errors=True)
    shutil.move(renamed_path, os.path.dirname(self.path))