cleanup after crazy "http://foo.com//blah" issue
This commit is contained in:
parent
e713541b35
commit
e5a2bec217
8
Makefile
8
Makefile
|
@ -64,21 +64,19 @@ devel:
|
||||||
forge clean devel --force --verbose
|
forge clean devel --force --verbose
|
||||||
|
|
||||||
pull: install
|
pull: install
|
||||||
# forge pull dirty
|
|
||||||
# FORGE_URL="https://forge.grid.wit.com/" forge pull dirty
|
|
||||||
# FORGE_URL="https://forge.grid.wit.com/" forge pull patches
|
|
||||||
FORGE_URL="https://forge.grid.wit.com/" forge pull check
|
FORGE_URL="https://forge.grid.wit.com/" forge pull check
|
||||||
# forge pull patches
|
|
||||||
|
|
||||||
# cloudflare blocks POST due to captcha checks / human detection?
|
# cloudflare blocks POST due to captcha checks / human detection?
|
||||||
# POST must be direct socket. probably for the best anyway
|
# POST must be direct socket. probably for the best anyway
|
||||||
submit:
|
submit:
|
||||||
FORGE_URL="https://forge.grid.wit.com/" forge patch submit "forge auto commit"
|
FORGE_URL="https://forge.grid.wit.com/" forge patch submit "forge auto commit"
|
||||||
# forge patch --submit "forge auto commit"
|
|
||||||
|
|
||||||
commit:
|
commit:
|
||||||
FORGE_URL="https://forge.grid.wit.com/" forge commit --all
|
FORGE_URL="https://forge.grid.wit.com/" forge commit --all
|
||||||
|
|
||||||
|
check: install
|
||||||
|
FORGE_URL="https://forge.grid.wit.com/" forge patch check
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
echo "/*" > doc.go
|
echo "/*" > doc.go
|
||||||
forge -h >> doc.go
|
forge -h >> doc.go
|
||||||
|
|
13
doPatch.go
13
doPatch.go
|
@ -36,19 +36,20 @@ func doPatch() error {
|
||||||
log.Info("Get Patchsets Failed", err)
|
log.Info("Get Patchsets Failed", err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
if argv.Patch.Check != nil {
|
||||||
old := findExpired()
|
old := findExpired()
|
||||||
// old.PrintTable()
|
// old.PrintTable()
|
||||||
for p := range old.IterAll() {
|
for p := range old.IterAll() {
|
||||||
log.Info("patch", p.Filename, p.Namespace)
|
log.Info("patch", p.Filename, p.Namespace)
|
||||||
}
|
}
|
||||||
me.forge.SubmitPatchesNew(old, "oldpatchset")
|
newpb, err := old.HttpPostVerbose(myServer(), "check")
|
||||||
log.Infof("submitted %d old patches\n", old.Len())
|
if err != nil {
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
|
newpb.PrintTable()
|
||||||
if argv.Patch.Check != nil {
|
|
||||||
log.Info("remove this option")
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,11 @@ func (b *mainType) Enable() {
|
||||||
b.mainbox.Enable()
|
b.mainbox.Enable()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// returns the server to connect to
|
||||||
|
func myServer() string {
|
||||||
|
return me.forge.GetForgeURL()
|
||||||
|
}
|
||||||
|
|
||||||
// this app's variables
|
// this app's variables
|
||||||
type mainType struct {
|
type mainType struct {
|
||||||
pp *arg.Parser // for parsing the command line args. Yay to alexf lint!
|
pp *arg.Parser // for parsing the command line args. Yay to alexf lint!
|
||||||
|
|
Loading…
Reference in New Issue