don't do patches unless in 'normal' state
This commit is contained in:
parent
5c6bbcdbb2
commit
3df2601f27
|
@ -28,6 +28,11 @@ func doPatchInit() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func doPatch() error {
|
func doPatch() error {
|
||||||
|
if me.forge.Config.Mode != forgepb.ForgeMode_NORMAL {
|
||||||
|
log.Info("forge requres a 'normal' state to work with patches")
|
||||||
|
return log.Errorf("not in 'normal' forge state")
|
||||||
|
}
|
||||||
|
|
||||||
if argv.Patch.Submit != nil {
|
if argv.Patch.Submit != nil {
|
||||||
_, err := me.forge.SubmitDevelPatchSet(argv.Patch.Submit.Match)
|
_, err := me.forge.SubmitDevelPatchSet(argv.Patch.Submit.Match)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -143,8 +148,9 @@ func dumpDirtyRepos() {
|
||||||
found := findReposWithPatches()
|
found := findReposWithPatches()
|
||||||
if found.Len() == 0 {
|
if found.Len() == 0 {
|
||||||
log.Info("you currently have no repos with patches")
|
log.Info("you currently have no repos with patches")
|
||||||
|
} else {
|
||||||
|
me.forge.PrintHumanTable(found)
|
||||||
}
|
}
|
||||||
me.forge.PrintHumanTable(found)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// returns bad if patches can not be applied
|
// returns bad if patches can not be applied
|
||||||
|
|
Loading…
Reference in New Issue