79403367

Date: 2025-01-31 16:27:46
Score: 1
Natty:
Report link

I added git config --global --add safe.directory '*' right before running the pre-commit command and it worked. Thanks to the suggestion.

The pre-commit tool documentation does not have anything that relates to the error I originally received. Hopefully this solution will help others getting the same error in the future.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): it worked
  • Has code block (-0.5):
  • Me too answer (2.5): getting the same error
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: mdailey77