Remember repoUrl if append .git to it.
Merge pull request #1982 from dart-lang/git_rem_repo

Remember repoUrl if append .git to it.