aboutsummaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-17 11:03:53 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-17 11:03:53 +0800
commit894cf6f88a640c2bc796caa3c61e5b7ed787683b (patch)
tree3381b3e2aeb9d740c191edfdf670dd32ad7939c5 /config.go
parentREADME.md: s/PGP/SSH/ for commit signature verification (diff)
downloadforge-894cf6f88a640c2bc796caa3c61e5b7ed787683b.tar.gz
forge-894cf6f88a640c2bc796caa3c61e5b7ed787683b.tar.zst
forge-894cf6f88a640c2bc796caa3c61e5b7ed787683b.zip
git_init.go: git_bare_init_with_default_hooks
Diffstat (limited to 'config.go')
-rw-r--r--config.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/config.go b/config.go
index 45550d7..13ae7e9 100644
--- a/config.go
+++ b/config.go
@@ -21,9 +21,10 @@ var config struct {
CookieExpiry int `scfg:"cookie_expiry"`
Root string `scfg:"root"`
} `scfg:"http"`
- Git struct {
- HooksSocket string `scfg:"hooks_socket"`
- } `scfg:"git"`
+ Hooks struct {
+ Socket string `scfg:"socket"`
+ Execs string `scfg:"execs"`
+ } `scfg:"hooks"`
SSH struct {
Net string `scfg:"net"`
Addr string `scfg:"addr"`