summaryrefslogtreecommitdiff
path: root/doPull.go
diff options
context:
space:
mode:
authorroot <[email protected]>2025-10-02 15:14:49 -0500
committerJeff Carr <[email protected]>2025-10-02 15:17:24 -0500
commit785e7102c58df7fdfe973a8f3ad8a7af2181e918 (patch)
tree64d7891ea2e5952672a9c01dd454a92e54f22017 /doPull.go
parent5a7a894e385f0dfdb34bb87af97ad8a02099cccf (diff)
add repos update
Diffstat (limited to 'doPull.go')
-rw-r--r--doPull.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/doPull.go b/doPull.go
index 80405ff..ad9d3ef 100644
--- a/doPull.go
+++ b/doPull.go
@@ -50,6 +50,22 @@ func needToUpdateRepo(repo *gitpb.Repo) (*gitpb.Repo, error) {
// is every repo on the devel branch?
func doPull() error {
+ if argv.Pull.Update != nil {
+ submit := me.forge.PrepareCheckRepos()
+ updatepb, regPB, err := submit.HttpPost(myServer(), "updateURL")
+ if err != nil {
+ log.Info("err =", err)
+ }
+ if regPB == nil {
+ log.Info("regPB==nil")
+ }
+ if updatepb == nil {
+ log.Info("server sent nil back")
+ return err
+ }
+ log.Infof("pull update pb.Len()=%d\n", updatepb.Len())
+ return nil
+ }
if argv.Pull.Check != nil {
submit := me.forge.PrepareCheckRepos()
updatepb, regPB, err := submit.HttpPost(myServer(), "check")