Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java')
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java
index 1a41c81fe..be80b0b3e 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java
@@ -311,8 +311,8 @@ public class CVSRepositoryLocation extends PlatformObject implements ICVSReposit
// Get the user name and password (if provided)
errorMessage = CVSMessages.CVSRepositoryLocation_parsingUser;
-
- end = location.indexOf(HOST_SEPARATOR, start);
+ //Since there is a @ sign in the user name so use lastIndexOf to get to the host separator @
+ end = location.lastIndexOf(HOST_SEPARATOR, location.length());
String user = null;
String password = null;
// if end is -1 then there is no host separator meaning that the username is not present

Back to the top