We need this check because org.eclipse.jgit.transport.URIish.URIish(String) accepts these URIs and we'll return an empty string:

- "git://" + ".git"
- "/.git"
- "//.git"
- "git://" + "/abc//.git"