Fix version incrementation
This commit is contained in:
parent
f35391b9b2
commit
5b188cf718
@ -192,8 +192,8 @@ doChallengeUpdate challengeId updateType publicUrl publicBranch publicGitAnnexRe
|
||||
|
||||
|
||||
incrementVersion :: ChallengeUpdateType -> (Int, Int, Int) -> (Int, Int, Int)
|
||||
incrementVersion MajorChange (major, minor, patch) = (major + 1, minor, patch)
|
||||
incrementVersion MinorChange (major, minor, patch) = (major, minor + 1, patch)
|
||||
incrementVersion MajorChange (major, minor, patch) = (major + 1, 0, 0)
|
||||
incrementVersion MinorChange (major, minor, patch) = (major, minor + 1, 0)
|
||||
incrementVersion ChallengePatch (major, minor, patch) = (major, minor, patch + 1)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user