allow simple version increments
This commit is contained in:
parent
3c1d032101
commit
25681e4798
|
@ -138,12 +138,20 @@ func globalDisplayOptions(box *gui.Node) {
|
|||
continue
|
||||
}
|
||||
|
||||
newversion := repo.Status.GetNewVersionTag()
|
||||
if newversion == targetv {
|
||||
log.Info(repo.GoPath(), "targetv has been increased already to", targetv)
|
||||
continue
|
||||
}
|
||||
|
||||
if masterv != targetv {
|
||||
log.Info(repo.GoPath(), "master and target differ already", masterv, targetv)
|
||||
log.Info(repo.GoPath(), "master and target differ", masterv, targetv)
|
||||
repo.Status.IncrementVersion()
|
||||
newversion := repo.Status.GetNewVersionTag()
|
||||
repo.Status.SetTargetVersion(newversion)
|
||||
// already incremented
|
||||
continue
|
||||
}
|
||||
repo.Status.IncrementVersion()
|
||||
}
|
||||
})
|
||||
grid.NextRow()
|
||||
|
|
Loading…
Reference in New Issue