testing repo submit
This commit is contained in:
parent
cd3ca5dc82
commit
c3afc8c2a1
|
@ -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":
|
||||
|
|
29
doPull.go
29
doPull.go
|
@ -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
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue