diff options
| author | Jeff Carr <[email protected]> | 2025-08-31 14:15:51 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-31 14:15:51 -0500 |
| commit | 46c11e7d33aac1948fc73fbf952597e59783c748 (patch) | |
| tree | 98628b4861d079f17e16c099cca491204d1f4710 /repoNew.go | |
| parent | eee996ed590abf6d312bcb6f2b49d84e6a1030ce (diff) | |
make stats for rill
Diffstat (limited to 'repoNew.go')
| -rw-r--r-- | repoNew.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 } |
