[JENKINS-20189] automatically append .git to repo URL
just as git-cli does when base URL don't resolve to a git repo