ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] checkhf.pl fails only on pre-commit hook

Date: Fri, 4 Apr 2014 22:36:29 -0400 (EDT)
I've taken the pre-commit hook file provided in \tools and put it in my git hooks folder.  However, whenever I commit something (I've focused mostly on dissector patches and they all fail this way), it fails with "Search pattern not terminated at ./tools/checkhf.pl line 564."

When I run checkhf.pl from the Windows command-line, I don't get any errors at all.

Suggestions?  I only thing I can come up with is different a version of perl is being called from the pre-commit than from command-line.  I don't consciously have multiple versions of perl installed (in Windows), so I was wondering if others have seen (and fixed) this issue.  I would really help catch errors in case I forget to manually run the scripts because I got frustrated and "disabled" the pre-commit hook (which has happened already)