summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--argvAutoshell.go2
-rw-r--r--doPull.go29
2 files changed, 18 insertions, 13 deletions
diff --git a/argvAutoshell.go b/argvAutoshell.go
index 826837b..b01b691 100644
--- a/argvAutoshell.go
+++ b/argvAutoshell.go
@@ -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":
diff --git a/doPull.go b/doPull.go
index 60139ab..8303ff8 100644
--- a/doPull.go
+++ b/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
}