Fixing issues with uris that contain  and submodules

I have a repo like gitosis@domain.com:path/repo.git, I made the regex non greedy otherwise it would detect repo.git as the destination instead of repo.