Skip to content

Commit

Permalink
Merge pull request #118 from Sayrus/fix-documentation-samples
Browse files Browse the repository at this point in the history
docs(pre-receive): fix filenames and python version
  • Loading branch information
jeremyds committed Oct 25, 2021
2 parents 88fa8bb + 1fb057b commit f3c480e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ $ git push --push-option=breakglass
1. This pre-receive hook requires the host machine to have python>=3.8 and pip installed
1. Install ggshield from pip: `pip install ggshield`
1. Move `pre-receive-python.sample` to `.git/hooks/pre-receive` or to your provider's git hook directory
1. Move `pre-receive.sample` to `.git/hooks/pre-receive` or to your provider's git hook directory

- https://docs.gitlab.com/ee/administration/server_hooks.html

Expand All @@ -653,7 +653,7 @@ $ git push --push-option=breakglass
[**pre-receive-docker.sample**](doc/pre-receive-docker.sample)

1. This pre-receive hook requires the host machine to have docker installed.
1. Move `pre-receive.sample` to `.git/hooks/pre-receive`
1. Move `pre-receive-docker.sample` to `.git/hooks/pre-receive`
1. Do not forget to `chmod +x .git/hooks/pre-receive`
1. either set an environment variable machine wide `GITGUARDIAN_API_KEY` or set it in the `.git/hooks/pre-receive` as instructed in the sample file.

Expand Down
4 changes: 2 additions & 2 deletions doc/pre-receive.sample
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh
# ggshield as a pre-commit hook
# Prequirements:
# python >= 3.6, pip
# python >= 3.8, pip
# Installation instructions:
# Run: pip install ggshield
# Move `pre-receive-python.sample` to `.git/hooks/pre-receive`
# Move `pre-receive.sample` to `.git/hooks/pre-receive`
# Do not forget to `chmod +x .git/hooks/pre-receive`
# either set an environment variable machine wide `GITGUARDIAN_API_KEY`
# or uncomment and insert your key in the following line
Expand Down

0 comments on commit f3c480e

Please sign in to comment.