aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/service.go
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2025-05-26 00:48:20 -0700
committerMax Resnick <max@ofmax.li>2025-05-26 00:49:44 -0700
commita146f39ed183f9957f659505b74782a84e5183c0 (patch)
tree7f62caa67c064174dca3f6879e6dfba3a0cb0b30 /internal/admin/service.go
parente7a9aada4d56605677ab873f0a3090ff80e8455a (diff)
downloadgo-git-server-a146f39ed183f9957f659505b74782a84e5183c0.tar.gz
fix: make sure basePath is set if it's a fresh install
Diffstat (limited to '')
-rw-r--r--internal/admin/service.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/admin/service.go b/internal/admin/service.go
index 6c969ef..ba8fe8b 100644
--- a/internal/admin/service.go
+++ b/internal/admin/service.go
@@ -93,6 +93,7 @@ func NewService(modelPath, policyPath, serverConfigPath, reposDir string, mgmtRe
if errors.Is(err, ErrMgmtRepoNotFound) {
slog.Info("no server config found, using default")
conf = defaultServerConfig
+ conf.basePath = reposDir
} else if err != nil {
return &Servicer{}, fmt.Errorf("Coudln't load server config. %w", err)