Use real host and port values in tests.
Prepare connections string for git.