diff options
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 } |
