summaryrefslogtreecommitdiff
path: root/docs/sysadmin/misc/git_server.md
blob: 3dcc080f399153f6e22ea9fadb06de0d79f3afbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
```