Before, the commit-msg hook would not catch too long lines when squashing commits, as the provided message starts immediately with a commented line. Instead of simply using all lines until the first comment, use all lines until git's cut-line and remove all commented lines in between. Do not hard-code git's commentary character but rather use `core.commentChar`. `auto` is depending of the context interpreted as 'any character' or `#`.
2.3 KiB
Executable File
2.3 KiB
Executable File