speed up finding UTF-8 errors

This commit is contained in:
Jeff Carr 2025-08-31 13:27:49 -05:00
parent 4fcc1e0349
commit eee996ed59
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ func (f *Forge) AddNamespaceDir(ns string, fullpath string) (*gitpb.Repo, error)
// repo.URL = url
f.VerifyBranchNames(repo)
repo.Reload()
if err := repo.ValidateUTF8(); err != nil {
return repo, err
}
return repo, nil
}