Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prepare-commit-msg hook doesn't generate a changed file list with Win…
…dows Git https://bugs.webkit.org/show_bug.cgi?id=261097 Reviewed by Jonathan Bedard. prepare-ChangeLog reproted "Can't locate VCSUtils.pm in @inc" error if it was executed from prepare-commit-msg hook of Windows Git. It failed to set a library path to 'Tools/Scripts' directory. Windows Git includes msys perl. prepare-commit-msg hook unexpectedly executed it. It should execute Windows Perl. Use shutil.which to get perl's absolute path. But, it's available for Python 3.3 or newer. Windows port developers have been switched to Python 3. Use the original relative command name 'perl' for older Python. * Tools/Scripts/hooks/prepare-commit-msg: * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/install_hooks.py: * (InstallHooks.main): Added a new template variable 'perl' to set perl's absolute path. Canonical link: https://commits.webkit.org/267649@main
- Loading branch information