diff options
-rw-r--r-- | docs/sysadmin/misc/git_server.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/sysadmin/misc/git_server.md b/docs/sysadmin/misc/git_server.md index 1991cc8..3dcc080 100644 --- a/docs/sysadmin/misc/git_server.md +++ b/docs/sysadmin/misc/git_server.md @@ -1 +1,18 @@ # Git Server + +## Hooks + +Script to run as the current user during certain actions (e.g., after pushing). + +### Environment variables + +A number of environment variables will be added when executing the script, and +this may affect git(1) operations inside the script. Take them with cautious. +The following example may not refelect the actual value in your setup. + +```shell +$ env | grep GIT +GIT_DIR=. +GIT_EXEC_PATH=/usr/lib/git-core +GIT_PUSH_OPTION_COUNT=0 +``` |