From 9fae69942a2b99e032b551f898785e0c380f6d7e Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Fri, 16 Aug 2024 06:41:32 -0700 Subject: fix: configureexport didn't have public logic X__x --- internal/admin/model.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/admin/model.go') diff --git a/internal/admin/model.go b/internal/admin/model.go index a797bbd..cce61ce 100644 --- a/internal/admin/model.go +++ b/internal/admin/model.go @@ -276,6 +276,9 @@ func (r *GitRepo) ReconcileRepo(basePath string) error { // ConfigureExport setup repo for sharing and configure web settings func (r *GitRepo) ConfigureExport(repoBase string) { + if !r.Public { + return + } okExport := filepath.Join(repoBase, GitWebExportMagic) _, err := os.Create(okExport) if err != nil { -- cgit v1.2.3