westerveltco / django-twc-project

A Django template for all web applications at The Westervelt Company
MIT License
24 stars 3 forks source link

Odd error with `pre-commit` when updating a project #119

Open joshuadavidthomas opened 6 months ago

joshuadavidthomas commented 6 months ago

When updating a project using the just copier-update-all command included in the template, there is a cryptic error from pre-commit about not being in a git repo:

An error has occurred: FatalError: git failed. Is it installed, and are you in a Git repository directory?
Check the log at /home/josh/.cache/pre-commit/pre-commit.log
Pre-commit run on all files.

It occurs at the beginning and the end. However, the pre-commit post step still runs, so it's more of an annoyance than anything.

Only happens when updating, not when onboarding an existing project by copying the template.

joshuadavidthomas commented 3 months ago

I actually haven't seen this recently? Wonder what happened.

Give it a few days, I'll keep this open for a little longer just in case.

joshuadavidthomas commented 3 months ago

Popped back up yesterday 😫