Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.egit.core/src/org/eclipse/egit/core/op/ConfigureGerritAfterCloneTask.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/op/ConfigureGerritAfterCloneTask.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/op/ConfigureGerritAfterCloneTask.java
index 7ce6be3096..0a76a58a0c 100644
--- a/org.eclipse.egit.core/src/org/eclipse/egit/core/op/ConfigureGerritAfterCloneTask.java
+++ b/org.eclipse.egit.core/src/org/eclipse/egit/core/op/ConfigureGerritAfterCloneTask.java
@@ -127,7 +127,8 @@ public class ConfigureGerritAfterCloneTask implements PostCloneTask {
}
if (path != null && (HTTP.equals(s) || HTTPS.equals(s))) {
- String baseURL = uri.substring(0, uri.lastIndexOf(path));
+ String baseURL = u.setPath("/").toString(); //$NON-NLS-1$
+ baseURL = baseURL.substring(0, baseURL.length() - 1);
String tmpPath = ""; //$NON-NLS-1$
HttpURLConnection httpConnection = null;
try {

Back to the top