Merge branch 'stable-2.15'

* stable-2.15:
  GerritSshApi: strip 'gerrit+' instead of leaving only it

Change-Id: I1490a38456ce33670624ae3c8bc966a6a6fab5e0
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/GerritSshApi.java b/src/main/java/com/googlesource/gerrit/plugins/replication/GerritSshApi.java
index 08dc296..b46a0d9 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/GerritSshApi.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/GerritSshApi.java
@@ -96,7 +96,7 @@
   private URIish toSshUri(URIish uri) throws URISyntaxException {
     String uriStr = uri.toString();
     if (uri.getHost() != null && uriStr.startsWith(GERRIT_ADMIN_PROTOCOL_PREFIX)) {
-      return new URIish(uriStr.substring(0, GERRIT_ADMIN_PROTOCOL_PREFIX.length()));
+      return new URIish(uriStr.substring(GERRIT_ADMIN_PROTOCOL_PREFIX.length()));
     }
     String rawPath = uri.getRawPath();
     if (!rawPath.endsWith("/")) {