summaryrefslogtreecommitdiff
path: root/doPull.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-26 18:57:02 -0500
committerJeff Carr <[email protected]>2025-09-26 18:57:02 -0500
commit957754de671bf6e5e3fcc77bf4d7c0340a2ac937 (patch)
tree7c1d6311db5d580ff99b48505af35dd41bc0fdf9 /doPull.go
parent89dab2b7bc085f24eeafb28906ea3279120ecbfa (diff)
pull check
Diffstat (limited to 'doPull.go')
-rw-r--r--doPull.go38
1 files changed, 18 insertions, 20 deletions
diff --git a/doPull.go b/doPull.go
index 2ed67a1..e4e248d 100644
--- a/doPull.go
+++ b/doPull.go
@@ -14,28 +14,26 @@ import (
// is every repo on the devel branch?
func doPull() error {
- /*
- if argv.Pull.Check != nil {
- // stats := me.forge.RillFuncError(rillPull)
- log.Info("TODO: actually git pull here? this is a bad idea. stopping.")
- submit := gitpb.NewRepos()
- for repo := range me.forge.Repos.IterByFullPath() {
- newrepo := new(gitpb.Repo)
- newrepo.MasterHash = repo.MasterHash
- newrepo.DevelHash = repo.DevelHash
- newrepo.Namespace = repo.Namespace
- newrepo.URL = repo.URL
- submit.Append(newrepo)
- }
- updatepb, regPB, err := submit.HttpPost(myServer(), "check")
- if regPB == nil || err != nil {
- log.Info("regPB==nil or err:", err)
- return nil
- }
- log.Infof("pull check %s pb.Len()=%d client.Len()=%d server.Len()=%d err=%v\n", regPB.URL, updatepb.Len(), regPB.ClientDataLen, regPB.ServerDataLen, err)
+ if argv.Pull.Check != nil {
+ // stats := me.forge.RillFuncError(rillPull)
+ log.Info("TODO: actually git pull here? this is a bad idea. stopping.")
+ submit := gitpb.NewRepos()
+ for repo := range me.forge.Repos.IterByFullPath() {
+ newrepo := new(gitpb.Repo)
+ newrepo.MasterHash = repo.MasterHash
+ newrepo.DevelHash = repo.DevelHash
+ newrepo.Namespace = repo.Namespace
+ newrepo.URL = repo.URL
+ submit.Append(newrepo)
+ }
+ updatepb, regPB, err := submit.HttpPost(myServer(), "check")
+ if regPB == nil || err != nil {
+ log.Info("regPB==nil or err:", err)
return nil
}
- */
+ log.Infof("pull check %s pb.Len()=%d client.Len()=%d server.Len()=%d err=%v\n", regPB.URL, updatepb.Len(), regPB.ClientDataLen, regPB.ServerDataLen, err)
+ return nil
+ }
if argv.Pull.List != nil {
found := gitpb.NewRepos()
var count int