Fix version parsing in pleroma_ctl
Currently the parser assumes the following format version-number_of_commits_ahead_of_tag-gcommit_hash-branch
, if nothing is present after the third dash it is assumed the branch is master
.
However if the branch has no commits ahead of tag but the branch is not master it will be just version-branch
, which the parser will detect as master
. So if someone runs develop
but right at the tag they will be switched to master next time they update.
After this bug is fixed we should document it in the update steps and provide instructions on how to bypass version detection and update to develop.