summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-07-08 17:17:05 -0500
committerJeff Carr <[email protected]>2025-07-08 17:17:05 -0500
commit3efb520fe0912a83a255c341dd219236b1e49720 (patch)
tree5cb4e6d8268f9c42ede5c2b6817655cac633d2c2
parent0dea6a25536f49deee2cf17c3deb2bb83fc56471 (diff)
first draftv0.22.124
-rw-r--r--doPull.go12
1 files changed, 11 insertions, 1 deletions
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 {