From 3efb520fe0912a83a255c341dd219236b1e49720 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 8 Jul 2025 17:17:05 -0500 Subject: [PATCH] first draft --- doPull.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doPull.go b/doPull.go index bbeb8ed..adc83f3 100644 --- a/doPull.go +++ b/doPull.go @@ -89,8 +89,18 @@ func doGitPullNew() error { // check to see if the repos need to be updated update := gitpb.NewRepos() + if found.Len() == 0 { + return nil + } + log.Info("found.Len() ==", found.Len()) + 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() repo2 := me.forge.Repos.FindByNamespace(ns) if repo2 == nil {