Merge pull request #3348 from MrHacky/remote-path-with-tilde Handle ssh:// and git:// urls containing a '~' character.