summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuuta Liang <yuuta@yuuta.moe>2023-11-07 13:12:08 +0800
committerYuuta Liang <yuuta@yuuta.moe>2023-11-07 13:12:08 +0800
commit81043b5990630b71375e250102eebe22a989fb4b (patch)
treeeb24bd1c955c0764c9452daebfd00d30b8f84d31
parent95c7d411032434f40946fc1b4af32e639de22fec (diff)
downloadkb-81043b5990630b71375e250102eebe22a989fb4b.tar
kb-81043b5990630b71375e250102eebe22a989fb4b.tar.gz
kb-81043b5990630b71375e250102eebe22a989fb4b.tar.bz2
kb-81043b5990630b71375e250102eebe22a989fb4b.zip
Add git server
-rw-r--r--docs/sysadmin/misc/git_server.md17
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
+```