Fixed an issue with commits being treated as tags