diff --git a/content/admin/enforcing-policies/enforcing-policy-with-pre-receive-hooks/creating-a-pre-receive-hook-script.md b/content/admin/enforcing-policies/enforcing-policy-with-pre-receive-hooks/creating-a-pre-receive-hook-script.md index 2ad63fa8fe1b..8302009c4d36 100644 --- a/content/admin/enforcing-policies/enforcing-policy-with-pre-receive-hooks/creating-a-pre-receive-hook-script.md +++ b/content/admin/enforcing-policies/enforcing-policy-with-pre-receive-hooks/creating-a-pre-receive-hook-script.md @@ -71,6 +71,9 @@ The following variables are always available in the pre-receive hook environment | Variable | Description | Example value | | :- | :- | :- | |
$GIT_DIR| Path to the remote repository on the instance | /data/user/repositories/a/ab/
$GIT_OBJECT_DIRECTORY| Path to a temporary directory containing the objects from the push | /data/user/repositories/a/ab/
$GIT_QUARANTINE_PATH| Contains the same value as `$GIT_OBJECT_DIRECTORY` | /data/user/repositories/a/ab/
$GIT_ALTERNATE_OBJECT_| Path to the object directory of the repository on the instance | /data/user/repositories/a/ab/
DIRECTORIES
$GIT_PUSH_OPTION_COUNT| The number of push options that were sent by the client with `--push-option`. For more information, see [git-push](https://git-scm.com/docs/git-push#Documentation/git-push.txt---push-optionltoptiongt) in the Git documentation. | 1 | |
$GIT\_PUSH\_OPTION\_N| Where N is an integer starting at 0, this variable contains the push option string that was sent by the client. The first option that was sent is stored in `GIT_PUSH_OPTION_0`, the second option that was sent is stored in `GIT_PUSH_OPTION_1`, and so on. For more information about push options, see [git-push](https://git-scm.com/docs/git-push#git-push---push-optionltoptiongt) in the Git documentation. | abcd | |
$GIT_USER_AGENT| User-agent string sent by the Git client that pushed the changes | git/2.0.0 |