Always update git urls with credentials

Allow urls with "@": For example: git+https://user:pass@domain.com/repository.git

The current code return "domain.com/repository.git" instead of "git+https://user:pass@domain.com/repository.git"