aboutsummaryrefslogtreecommitdiff
path: root/git_init.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-05 21:47:44 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-05 21:47:44 +0800
commitefa6f33b4c67f64a4a8d8cd723b9bbc9494fc735 (patch)
treec4075c78bc4126d764f91ec68931c34281913dcc /git_init.go
parentAdd missing copyright headers (diff)
downloadforge-3e835507e804c2fc51773a5efe784663a055e56a.tar.gz
forge-3e835507e804c2fc51773a5efe784663a055e56a.tar.zst
forge-3e835507e804c2fc51773a5efe784663a055e56a.zip
Unexport fields in Serverv0.1.24
Diffstat (limited to 'git_init.go')
-rw-r--r--git_init.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/git_init.go b/git_init.go
index b448451..d1922ee 100644
--- a/git_init.go
+++ b/git_init.go
@@ -23,7 +23,7 @@ func (s *Server) gitInit(repoPath string) (err error) {
return err
}
- gitConf.Raw.SetOption("core", gitFmtConfig.NoSubsection, "hooksPath", s.Config.Hooks.Execs)
+ gitConf.Raw.SetOption("core", gitFmtConfig.NoSubsection, "hooksPath", s.config.Hooks.Execs)
gitConf.Raw.SetOption("receive", gitFmtConfig.NoSubsection, "advertisePushOptions", "true")
if err = repo.SetConfig(gitConf); err != nil {