From 42982c55bdb10f676e7994a99a7445dc9c034e30 Mon Sep 17 00:00:00 2001 From: "l.feng" <43399351+msclock@users.noreply.github.com> Date: Wed, 18 Dec 2024 09:31:51 +0800 Subject: [PATCH] fix: prepend subporject_subdir path for files in skip_in_exists Signed-off-by: l.feng <43399351+msclock@users.noreply.github.com> --- copier/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copier/main.py b/copier/main.py index 925d758dc..cef83f970 100644 --- a/copier/main.py +++ b/copier/main.py @@ -1071,8 +1071,9 @@ def _apply_update(self) -> None: # noqa: C901 filename.split("!! ").pop() for filename in ignored_files.splitlines() ] + skip_if_exists = chain(self.skip_if_exists, self.template.skip_if_exists) for skip_pattern in chain( - self.skip_if_exists, self.template.skip_if_exists, extra_exclude + [subproject_subdir/skip for skip in skip_if_exists], extra_exclude ): apply_cmd = apply_cmd["--exclude", skip_pattern] (apply_cmd << diff)(retcode=None)