testing repo submit

This commit is contained in:
Jeff Carr 2025-09-08 08:13:27 -05:00
parent cd3ca5dc82
commit c3afc8c2a1
2 changed files with 18 additions and 13 deletions

View File

@ -46,7 +46,7 @@ func (args) doBashAuto() {
case "normal":
fmt.Println("on off")
case "pull":
fmt.Println("dirty clean list patches --force")
fmt.Println("-force check")
case "patch":
fmt.Println("check get list repos submit show")
case "user":

View File

@ -14,6 +14,22 @@ 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)
}
submit.HttpPost(myServer(), "check")
}
// below this, you must not be in 'normal' mode
if me.forge.Config.Mode == forgepb.ForgeMode_NORMAL {
log.Info("you must check out the devel or master branches")
return nil
@ -32,18 +48,7 @@ func doPull() error {
return 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)
}
submit.HttpPost(myServer(), "check")
log.Info("do a pull check here?")
return nil
}