aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/model.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--internal/admin/model.go3
1 files changed, 3 insertions, 0 deletions
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 {