Commit 5ed6c6a1 authored by Evan Read's avatar Evan Read

Merge branch 'tweak_lefthook_instructions' into 'master'

Tweaking Lefthook Instructions

See merge request gitlab-org/gitlab!46667
parents ce8c53db 3caf0c2d
...@@ -21,12 +21,14 @@ We strongly recommend installing ...@@ -21,12 +21,14 @@ We strongly recommend installing
[Lefthook](https://github.com/Arkweid/lefthook) to automatically check for [Lefthook](https://github.com/Arkweid/lefthook) to automatically check for
static analysis offenses before pushing your changes. static analysis offenses before pushing your changes.
After installing `overcommit`, run the following in your GitLab source directory: To install `lefthook`, run the following in your GitLab source directory:
```shell ```shell
# Make sure to uninstall Overcommit first # Make sure to uninstall Overcommit first
overcommit --uninstall overcommit --uninstall
# If using rbenv, at this point you may need to do: rbenv rehash
# Install lefthook # Install lefthook
gem install lefthook && lefthook install -f gem install lefthook && lefthook install -f
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment