commit | 08862c06001ff24892c5459ead7ebf738893d664 | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Fri Apr 13 16:35:11 2018 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Fri Apr 13 16:35:11 2018 +0900 |
tree | d41e45372e54c05981abab3f2d7f35230f964503 | |
parent | a62d1c601e6c7fb669c847a0e1843e6f60cd1cb2 [diff] | |
parent | b8d43b446624627b7367347d828012bc1b16c4d8 [diff] |
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("/")) {