Skip to content

Commit

Permalink
fix(copier.yml): always run git add --all
Browse files Browse the repository at this point in the history
  • Loading branch information
34j committed Oct 23, 2024
1 parent b4fdfed commit 16c0812
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ _tasks:
- "{% if 'Windows' in ''|env('OS') %}{% set venv_folder = 'venv\\\\scripts\\\\' %}{% else %}{% set venv_folder = 'venv/bin/' %}{% endif %}
{% if run_poetry_install %}{{ venv_folder }}python -m pip install -U pip setuptools wheel && {{ venv_folder }}pip install -U poetry pre-commit && {{ venv_folder }}python -m poetry install --with dev{% endif %}"
# git init
- "git init && git add ."
- "git init && git add --all"
# Setup pre-commit
- "{% if 'Windows' in ''|env('OS') %}{% set venv_folder = 'venv\\\\scripts\\\\' %}{% else %}{% set venv_folder = 'venv/bin/' %}{% endif %}
{% if setup_pre_commit %}{{ venv_folder }}pre-commit autoupdate && {{ venv_folder }}pre-commit install && {{ venv_folder }}pre-commit run -a || git add .{% endif %}"
{% if setup_pre_commit %}{{ venv_folder }}pre-commit autoupdate && {{ venv_folder }}pre-commit install && {{ venv_folder }}pre-commit run -a{% endif %}"
# Initial commit
- '{% if initial_commit %}git commit -m "chore: initial commit"{% endif %}'
- '{% if initial_commit %}git add --all && git commit -m "chore: initial commit"{% endif %}'
# Add me as a contributor
- "{% if add_me_as_contributor %}npx all-contributors-cli add {{ github_username }} code,ideas,doc{% endif %}"
# Setup GitHub
Expand Down

0 comments on commit 16c0812

Please sign in to comment.