Open
Description
Describe the problem
copy on repository contains uncommit files doesn't works even when added -r HEAD
option.
Template
hello {{name}}
To Reproduce
- Create empty directory
- Create copier.yaml contains content below
_min_copier_version: 9.4.1
_subdirectory: templates
name:
type: str
help: What is your name?
- Create templates directory and file named message.txt
- The file should contains
hello {{name}}
$PWD/example:
copier.yaml: |
_min_copier_version: 9.4.1
_subdirectory: templates
name:
type: str
help: What is your name?
templates/message.txt: |
hello {{name}}
- Run
copier copy . .temp
and it should works normally - Run
git init
- Rerun
copier copy . .temp
again and it doesn't works anymore - Even with
copier copy -r HEAD . .temp
, it doesn't works as well
Logs
.../copier/9.4.1/venv/lib/python3.12/site-packages/copier/vcs.py:209: DirtyLocalWarning: Dirty template changes included automatically.
warn(
Copying from template version 0.0.0.post1.dev0+9e08b53
Expected behavior
it copy templates to target directory.
Screenshots/screencasts/logs
No response
Operating system
macOS
Operating system distribution and version
MacOS 15.1.1
Copier version
copier 9.4.1
Python version
Python 3.12.2
Installation method
pip+pypi
Additional context
No response