Skip to content

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

@joshuadavidthomas

Description

@joshuadavidthomas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions