Skip to content

Commit

Permalink
fix: prepend subporject_subdir path for files in skip_in_exists
Browse files Browse the repository at this point in the history
Signed-off-by: l.feng <[email protected]>
  • Loading branch information
msclock committed Dec 18, 2024
1 parent edfec9b commit 42982c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion copier/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 42982c5

Please sign in to comment.