Closed jvacek closed 4 months ago
this repo is for a few out of the box hooks for pre-commit and not a support forum. your best bet is to first read the docs on filtering and then if you still don't know the answer ask with the correct tags on stackoverflow (also listed in the docs)
Heya!
I'm trying to have a hook run whenever one of the files that changes is a submodule's reference. I was assuming that the change would count as a "file change" to pre-commit (as it does to git), however when I'm making a commit, I'm told there are no files that changed.
I am now running this with
always_run: true
, as I cannot find any way to make a condition about the subproject commit of a submodule changing.Would you have any advice for a sane way to do this? Many thanks!
here's some output to maybe explain better:
as for the hook I'm trying to run:
→