I have found myself from time to time needing to temporarily disable the pre-commit hook (ie error is ignorable). The situation I ran into today I don't think should have been.
I created a patch that removed a header file from epan\dissectors (packet-ipsec.h). When I tried to commit it, the pre-commit hook errored out with "can't find packet-ipsec.h" and failed the commit. Is there something I'm missing (using TortoiseGit) or does the script need to be tweaked to ignore deleted files?
The latter I expect. Was the file deleted according to git or just according to the file system?