summaryrefslogtreecommitdiff
path: root/repoNew.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-31 13:27:49 -0500
committerJeff Carr <[email protected]>2025-08-31 13:27:49 -0500
commiteee996ed590abf6d312bcb6f2b49d84e6a1030ce (patch)
tree8f087a906538c12fc0a15a835f736a636bd03e89 /repoNew.go
parent4fcc1e0349c8a0f13023639e17561bbcb050bffb (diff)
speed up finding UTF-8 errors
Diffstat (limited to 'repoNew.go')
-rw-r--r--repoNew.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/repoNew.go b/repoNew.go
index a8f026f..09ce519 100644
--- a/repoNew.go
+++ b/repoNew.go
@@ -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
}