summaryrefslogtreecommitdiff
path: root/findNext.go
diff options
context:
space:
mode:
Diffstat (limited to 'findNext.go')
-rw-r--r--findNext.go12
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
}