diff --git a/doc/source/installation.rst b/doc/source/installation.rst index 32fbf64b..91c6a420 100644 --- a/doc/source/installation.rst +++ b/doc/source/installation.rst @@ -89,9 +89,13 @@ Hooks git-review has a custom hook mechanism to run a script before certain actions. This is done in the same spirit as the classic hooks in git. -There are two types of hooks, a global one which is stored in -``~/.config/git-review/hooks/`` and one local to the repository stored in -``.git/hooks/`` with the other git hook scripts. +There are two types of hooks: + +* a global one which is stored in ``~/.config/git-review/hooks/``, + +* and one local to the repository, which is stored with the other git + hook scripts. Normally that's the ``.git/hooks/`` directory in your + checkout. **The script needs be executable before getting executed** diff --git a/releasenotes/notes/support-core-hooks-path-ea5402d5d6204f70.yaml b/releasenotes/notes/support-core-hooks-path-ea5402d5d6204f70.yaml index 0fa36a30..9f9e45bc 100644 --- a/releasenotes/notes/support-core-hooks-path-ea5402d5d6204f70.yaml +++ b/releasenotes/notes/support-core-hooks-path-ea5402d5d6204f70.yaml @@ -1,8 +1,8 @@ --- fixes: - | - git-review now handles the Git "core.hooksPath" configuration - option correctly. Thus, it installs the commit-msg hook into the - core.hooksPath directory, if that option is set. Otherwise, it - continues to install the hook into .git/hooks, relative to the - root of the checkout. + git-review now handles the Git ``core.hooksPath`` configuration + option correctly. Thus, it installs the ``commit-msg`` hook into + the ``core.hooksPath`` directory, if that option is + set. Otherwise, it continues to install the hook into + ``.git/hooks``, relative to the root of the checkout.