From 46c11e7d33aac1948fc73fbf952597e59783c748 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 31 Aug 2025 14:15:51 -0500 Subject: make stats for rill --- repoNew.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'repoNew.go') diff --git a/repoNew.go b/repoNew.go index 09ce519..14c8106 100644 --- a/repoNew.go +++ b/repoNew.go @@ -50,13 +50,13 @@ func (f *Forge) AddNamespaceDir(ns string, fullpath string) (*gitpb.Repo, error) log.Info("WARNING. NEW FAILED", fullpath) return nil, err } - // slices.Reverse(f.Repos.Repos) - // repo.URL = url f.VerifyBranchNames(repo) repo.Reload() - if err := repo.ValidateUTF8(); err != nil { - return repo, err + + // set the readonly flag based on the users' forge config + if f.Config.IsReadOnly(repo.GetGoPath()) { + repo.ReadOnly = true } return repo, nil } -- cgit v1.2.3