first draft

This commit is contained in:
Jeff Carr 2025-07-08 17:17:05 -05:00
parent 0dea6a2553
commit 3efb520fe0
1 changed files with 11 additions and 1 deletions

View File

@ -89,8 +89,18 @@ func doGitPullNew() error {
// check to see if the repos need to be updated // check to see if the repos need to be updated
update := gitpb.NewRepos() update := gitpb.NewRepos()
if found.Len() == 0 {
return nil
}
log.Info("found.Len() ==", found.Len())
for repo := range found.IterAll() { for repo := range found.IterAll() {
a := repo.GetLocalHash(repo.GetMasterBranchName()) masterb := repo.GetMasterBranchName()
if masterb == "" {
log.Info(repo.GetNamespace(), "master branch blank")
continue
}
a := repo.GetLocalHash(masterb)
ns := repo.GetNamespace() ns := repo.GetNamespace()
repo2 := me.forge.Repos.FindByNamespace(ns) repo2 := me.forge.Repos.FindByNamespace(ns)
if repo2 == nil { if repo2 == nil {