diff options
| author | Jeff Carr <[email protected]> | 2025-01-19 02:37:31 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-19 02:37:31 -0600 |
| commit | f4ac4914906110c3a1a4a5fc29336e11122500ca (patch) | |
| tree | ebd59ed18015e8c92d68cd148e78991ca0ad690a /repoNew.go | |
| parent | bdf9d97cf9bf3e9bc0724b6f949089bb46923426 (diff) | |
debugging, but runs ok
Diffstat (limited to 'repoNew.go')
| -rw-r--r-- | repoNew.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -5,6 +5,7 @@ import ( "os" "path/filepath" "regexp" + "slices" "strings" "go.wit.com/lib/protobuf/gitpb" @@ -13,11 +14,20 @@ import ( func (f *Forge) NewGoRepo(gopath string, url string) (*gitpb.Repo, error) { fullpath := filepath.Join(f.GetGoSrc(), gopath) + test := f.Repos.FindByFullPath(fullpath) + if test != nil { + return test, nil + } + log.Info("LEN START", f.Repos.Len()) repo, err := f.Repos.NewGoRepo(fullpath, gopath) if err != nil { log.Info("WARNING. NEW FAILED", fullpath) return nil, err } + log.Info("LEN END", f.Repos.Len()) + slices.Reverse(f.Repos.Repos) + log.Info("LEN END", f.Repos.Len()) + repo.URL = url f.VerifyBranchNames(repo) if f.Config.IsReadOnly(repo.GetGoPath()) { |
