Skip to content

core.hooksPath being set makes it not possible to install #1298

@damienrj

Description

@damienrj

I have a laptop which has some mandaotry global settings for git, and I have not been able to enable pre-commit. I also tried doing

git config --global init.templateDir ~/.git-template
pre-commit init-templatedir ~/.git-template

But still get the message

[ERROR] Cowardly refusing to install hooks with `core.hooksPath` set.
hint: `git config --unset-all core.hooksPath`

Is there any work arounds for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions