Skip to content

Commit bfb5563

Browse files
committed
Manage Package Update in Git
1 parent 99245f9 commit bfb5563

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

copier.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ _tasks:
3333
rm src/{{package_name}}/cli.py tests/test_cli.py
3434
{% endif %}
3535
# Git VCS
36-
- git init && git add . && git commit --message "Initial commit"
36+
- >-
37+
if [ -e .git ]
38+
then
39+
git add . && git commit --message "Template Update" --no-verify
40+
else
41+
git init && git add . && git commit --message "Initial commit"
42+
fi
3743
- pre-commit install
3844
# Create virtualenv and install
3945
- python3 -m venv venv

0 commit comments

Comments
 (0)