Remember repoUrl if append .git to it.

@devoncarew #1611