Bug 1845550 - Docs on linting: clarify command to create git hook. r=ahal DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D184600
This commit is contained in:
Vincent Hilla 2023-07-26 19:06:22 +00:00
Родитель 24b078a982
Коммит 3f90cef3c9
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -80,15 +80,16 @@ To enable a pre-push git hook, run the following command:
.. parsed-literal::
$ ln -s /path/to/gecko/tools/lint/hooks.py .git/hooks/pre-push
$ ln -s ../../tools/lint/hooks.py .git/hooks/pre-push
To enable a pre-commit git hook, run the following command:
.. parsed-literal::
$ ln -s /path/to/gecko/tools/lint/hooks.py .git/hooks/pre-commit
$ ln -s ../../tools/lint/hooks.py .git/hooks/pre-commit
Note that the symlink will be interpreted as ``.git/hooks/../../tools/lint/hooks.py``.
Fixing Lint Errors
==================