Handle '@' symbol in ssh username

http://youtrack.jetbrains.com/issue/IDEA-123890
Git pull doesn't work if git username has 'at' symbol
This commit is contained in:
suman-ganta
2014-06-05 22:37:18 -07:00
parent 339e7d6b02
commit f06f5a629e
@@ -471,7 +471,7 @@ public class SSHMain implements GitExternalApp {
}
String host = args[i++];
String user;
int atIndex = host.indexOf('@');
int atIndex = host.lastIndexOf('@');
if (atIndex == -1) {
user = null;
}