diff options
| -rw-r--r-- | findNext.go | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/findNext.go b/findNext.go index 17e6ad0..b36594c 100644 --- a/findNext.go +++ b/findNext.go @@ -15,6 +15,16 @@ var findFix bool = false var findOk bool = true func rillFixGodeps(repo *gitpb.Repo) error { + if repo.GetTargetVersion() == "" { + // not set to upgrade + return nil + } + if repo.GetLastTag() == repo.GetTargetVersion() { + return nil + } + if me.forge.Config.IsReadOnly(repo.GetGoPath()) { + return nil + } if me.forge.Config.IsReadOnly(repo.GetGoPath()) { return nil } @@ -49,7 +59,7 @@ func findNext() bool { log.Info("findNext() skipping readonly") continue } - if check.CheckDirty() { + if check.IsDirty() { log.Info("findNext() skipping dirty") continue } |
