aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-17 01:58:46 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-17 01:58:46 +0800
commit2c37df3c0b52a3954e2159e6f03ee3a19b959270 (patch)
tree6acafb3bab9d76058bba7396994753c860f24c1a
parentgit_hooks_client: Splice stdin (diff)
downloadforge-2c37df3c0b52a3954e2159e6f03ee3a19b959270.tar.gz
forge-2c37df3c0b52a3954e2159e6f03ee3a19b959270.tar.zst
forge-2c37df3c0b52a3954e2159e6f03ee3a19b959270.zip
config.go: git.hooks_socket
Diffstat (limited to '')
-rw-r--r--config.go3
-rw-r--r--forge.scfg2
2 files changed, 4 insertions, 1 deletions
diff --git a/config.go b/config.go
index 888d488..45550d7 100644
--- a/config.go
+++ b/config.go
@@ -21,6 +21,9 @@ var config struct {
CookieExpiry int `scfg:"cookie_expiry"`
Root string `scfg:"root"`
} `scfg:"http"`
+ Git struct {
+ HooksSocket string `scfg:"hooks_socket"`
+ } `scfg:"git"`
SSH struct {
Net string `scfg:"net"`
Addr string `scfg:"addr"`
diff --git a/forge.scfg b/forge.scfg
index 49f6222..492b9ac 100644
--- a/forge.scfg
+++ b/forge.scfg
@@ -22,5 +22,5 @@ db {
}
git {
- root /srv/git
+ hooks_socket /var/run/lindenii/forge/hooks.sock
}