Skip to content

Commit

Permalink
Add a note to install hooks internally (DataDog#17272)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentClarret authored Mar 25, 2024
1 parent 26009ce commit 7630840
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# https://pre-commit.com/
# If you face issues with the DD default hooks:
# 1. Get the path to your current Datadog global hooks installation.
# $ git config --global core.hooksPath
# $ /usr/local/dd/global_hooks
# 2. Unset the global hooks path.
# $ git config --global --unset core.hooksPath
# 3. Run `pre-commit install`
# 4. Reset the global hooks path to point back at the DataDog global hooks installation.
# $ git config --global core.hooksPath /usr/local/dd/global_hooks
---
repos:
- repo: local
Expand Down

0 comments on commit 7630840

Please sign in to comment.