speed up finding UTF-8 errors
This commit is contained in:
parent
4fcc1e0349
commit
eee996ed59
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue