this can bypass the normal check
This commit is contained in:
parent
b71471c61e
commit
86eb446408
10
doPatch.go
10
doPatch.go
|
@ -40,6 +40,11 @@ func isPatchingSafe() bool {
|
|||
}
|
||||
|
||||
func doPatch() error {
|
||||
if argv.Patch.Repos != nil {
|
||||
dumpDirtyRepos()
|
||||
return nil
|
||||
}
|
||||
|
||||
if !isPatchingSafe() {
|
||||
return log.Errorf("not safe to work on patches")
|
||||
}
|
||||
|
@ -144,11 +149,6 @@ func doPatch() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
if argv.Patch.Repos != nil {
|
||||
dumpDirtyRepos()
|
||||
return nil
|
||||
}
|
||||
|
||||
// if nothing, show patches & dirty repos
|
||||
me.forge.Patchsets.PrintTable()
|
||||
dumpDirtyRepos()
|
||||
|
|
Loading…
Reference in New Issue