Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions copier/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,12 @@ def _answers_to_remember(self) -> Mapping[str, Any]:
answers: AnyByStrDict = {}
commit = self.template.commit
src = self.template.url
# For local template paths, store as absolute so the path remains
Comment thread
Oscar-SR marked this conversation as resolved.
Outdated
# valid if the CWD changes between copy and update operations
if src:
Comment thread
Oscar-SR marked this conversation as resolved.
Outdated
src_path = Path(src)
if src_path.exists():
src = str(src_path.resolve())
for key, value in (("_commit", commit), ("_src_path", src)):
if value is not None:
answers[key] = value
Expand Down