| Summary: | prepare-commit-msg hook doesn't generate a changed file list with Windows Git | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <Hironori.Fujii> |
| Component: | Tools / Tests | Assignee: | Fujii Hironori <Hironori.Fujii> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Fujii Hironori
2023-09-03 22:25:47 PDT
This error message is reported by msys perl which is included in Windows Git. If I manually modify 'perl' in '.git/hooks/prepare-commit-msg' to 'C:\\xampp\\perl\\bin\\perl', it works as expected. In prepare-ChangeLog, $FindBin::Bin has a wrong path. That's the reason VCSUtils.pm can't be located. Another workaround is modifying the following line in '.git/hooks/prepare-commit-msg' > command = ['perl', os.path.join(SCRIPTS, 'prepare-ChangeLog'), '--no-write', '--only-files', '--delimiters', '--git-index'] with > command = ['perl', '-I' + SCRIPTS, os.path.join(SCRIPTS, 'prepare-ChangeLog'), '--no-write', '--only-files', '--delimiters', '--git-index'] Pull request: https://github.com/WebKit/WebKit/pull/17400 Committed 267649@main (662e3790e0b6): <https://commits.webkit.org/267649@main> Reviewed commits have been landed. Closing PR #17400 and removing active labels. |