Merge pull request 191 from suman-ganta for IDEA-123890
authorKirill Likhodedov <Kirill.Likhodedov@jetbrains.com>
Tue, 10 Jun 2014 09:03:18 +0000 (12:03 +0300)
committerKirill Likhodedov <Kirill.Likhodedov@jetbrains.com>
Tue, 10 Jun 2014 09:03:18 +0000 (12:03 +0300)
plugins/git4idea/rt/src/org/jetbrains/git4idea/ssh/SSHMain.java

index efe567fb52cb21089f3f150cd17c756ed1825a20..b5bc260b95205032ebb61d238c54e188e0b806a5 100644 (file)
@@ -486,7 +486,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;
     }