Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 57dd97a2399f033b231b2e90246c7a916f1ff01c https://github.com/WebKit/WebKit/commit/57dd97a2399f033b231b2e90246c7a916f1ff01c Author: Jonathan Bedard <jbed...@apple.com> Date: 2023-03-22 (Wed, 22 Mar 2023)
Changed paths: M Tools/Scripts/libraries/webkitscmpy/setup.py M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/install_hooks.py M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/land.py M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/publish.py M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/install_hooks_unittest.py Log Message: ----------- [git-webkit] Force pre-push hooks to be up-to-date https://bugs.webkit.org/show_bug.cgi?id=253972 rdar://106760739 Reviewed by Aakash Jain and Ryan Haddad. If a checkout defines a pre-push hook, prevent users from running commands which invoke `git push` without first installing the hook. * Tools/Scripts/libraries/webkitscmpy/setup.py: Bump version. * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto. * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/install_hooks.py: (InstallHooks.version_for): Extract version from a hook template file. (InstallHooks.hook_needs_update): Compare the checked in hook template to the installed hook template. * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/land.py: (Land.main): Exit program if our pre-push hook is out of date. * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/publish.py: (Publish.main): Ditto. * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py: (PullRequest.main): Ditto. * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/install_hooks_unittest.py: Added. (TestInstallHooks): Canonical link: https://commits.webkit.org/261970@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes