Doc updates for Git "core.hooksPath" option support
Couple of small follow-ups to Id8a3ac464ff75e6d8207f198089f018cc790eca5: * Fix formatting in the reno (use monospace as applicable). * Update "Installation and Configuration" to say that the local hook *normally* goes into .git/hooks. Change-Id: I1b326bdcaed38d3a82a65f944431f3640652dd33
This commit is contained in:
parent
c40eb491e6
commit
04786cd9ea
@ -89,9 +89,13 @@ Hooks
|
|||||||
git-review has a custom hook mechanism to run a script before certain
|
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.
|
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
|
There are two types of hooks:
|
||||||
``~/.config/git-review/hooks/`` and one local to the repository stored in
|
|
||||||
``.git/hooks/`` with the other git hook scripts.
|
* 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**
|
**The script needs be executable before getting executed**
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
fixes:
|
fixes:
|
||||||
- |
|
- |
|
||||||
git-review now handles the Git "core.hooksPath" configuration
|
git-review now handles the Git ``core.hooksPath`` configuration
|
||||||
option correctly. Thus, it installs the commit-msg hook into the
|
option correctly. Thus, it installs the ``commit-msg`` hook into
|
||||||
core.hooksPath directory, if that option is set. Otherwise, it
|
the ``core.hooksPath`` directory, if that option is
|
||||||
continues to install the hook into .git/hooks, relative to the
|
set. Otherwise, it continues to install the hook into
|
||||||
root of the checkout.
|
``.git/hooks``, relative to the root of the checkout.
|
||||||
|
Loading…
Reference in New Issue
Block a user