This needed to take various git version into account as per https://github.com/LibreTime/libretime/pull/102#issuecomment-288707322. It also had a bug where it would do the completely wrong thing with the currentParts array if a git commit-ish was treated as a version by mistake.