Add checking for rev and mirror/bare args in git.latest, Fix #9107
Merge pull request #9195 from basepi/gitlatestargs9107

Add checking for rev and mirror/bare args in git.latest, Fix #9107