[webkit-changes] [WebKit/WebKit] 3aa38b: [git-webkit] Avoid hardcoding working tree path in...

Sam Sneddon noreply at github.com
Fri Aug 4 03:45:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3aa38b6cb9f2d813b108cb39d90ee2b5d7a2cdf3
      https://github.com/WebKit/WebKit/commit/3aa38b6cb9f2d813b108cb39d90ee2b5d7a2cdf3
  Author: Sam Sneddon <gsnedders at apple.com>
  Date:   2023-08-04 (Fri, 04 Aug 2023)

  Changed paths:
    M Tools/Scripts/hooks/pre-commit
    M Tools/Scripts/hooks/pre-push
    M Tools/Scripts/hooks/prepare-commit-msg
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/install_hooks.py

  Log Message:
  -----------
  [git-webkit] Avoid hardcoding working tree path in hooks
https://bugs.webkit.org/show_bug.cgi?id=259753
rdar://problem/113294324

Reviewed by Jonathan Bedard.

This relies on git rev-parse --show-toplevel to instead find the
top-level directory of the working tree, and just stores the path from
there in the hooks.

* Tools/Scripts/hooks/pre-commit:
* Tools/Scripts/hooks/pre-push:
* Tools/Scripts/hooks/prepare-commit-msg:
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/install_hooks.py:
(InstallHooks.main):

Canonical link: https://commits.webkit.org/266577@main




More information about the webkit-changes mailing list