From 2c37df3c0b52a3954e2159e6f03ee3a19b959270 Mon Sep 17 00:00:00 2001 From: Runxi Yu <me@runxiyu.org> Date: Mon, 17 Feb 2025 01:58:46 +0800 Subject: [PATCH] config.go: git.hooks_socket --- config.go | 3 +++ forge.scfg | 2 +- diff --git a/config.go b/config.go index 888d488b2a18465b299302087e0260b6b6efb55c..45550d7b73da09cd678c7d6dd19508fc61c7fa8f 100644 --- a/config.go +++ b/config.go @@ -21,6 +21,9 @@ Addr string `scfg:"addr"` 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 49f62227d7bbf95e0537ea44e8b6da9d29aa19bd..492b9ac496b5644ed1f124b69b2b083bf388d806 100644 --- a/forge.scfg +++ b/forge.scfg @@ -22,5 +22,5 @@ conn postgresql:///lindenii-forge?host=/var/run/postgresql } git { - root /srv/git + hooks_socket /var/run/lindenii/forge/hooks.sock } -- 2.48.1