[webkit-changes] [WebKit/WebKit] f05f3c: [git-webkit] Look for hooks in the GIT_DIR, not th...

Elliott Williams noreply at github.com
Wed Mar 29 14:07:30 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f05f3c94288477d8b1350ab85f44cb21223b20ed
      https://github.com/WebKit/WebKit/commit/f05f3c94288477d8b1350ab85f44cb21223b20ed
  Author: Elliott Williams <emw at apple.com>
  Date:   2023-03-29 (Wed, 29 Mar 2023)

  Changed paths:
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/install_hooks.py

  Log Message:
  -----------
  [git-webkit] Look for hooks in the GIT_DIR, not the worktree
https://bugs.webkit.org/show_bug.cgi?id=254677

Reviewed by Jonathan Bedard.

Currently, git-webkit assumes hooks are in a ".git/hooks" directory
relative to the top-level worktree directory. This is not the case for
repos with multiple worktrees or other exotic setups.

Use common_dir when computing the path to the hooks directory.

* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/install_hooks.py:
(InstallHooks.hook_needs_update):

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




More information about the webkit-changes mailing list