diff --git a/copier/_main.py b/copier/_main.py index 925f3467b..9b1090b86 100644 --- a/copier/_main.py +++ b/copier/_main.py @@ -1273,8 +1273,11 @@ def _apply_update(self) -> None: # noqa: C901 dst_path=new_copy / subproject_subdir, data={ k: v - for k, v in self._answers_to_remember().items() + for k, v in self.answers.combined.items() if not k.startswith("_") + and k not in self.answers.hidden + and isinstance(k, JSONSerializable) + and isinstance(v, JSONSerializable) }, defaults=True, quiet=True,