For clone commands rely on scheme URLs from the server

Do not construct clone commands on client-side, but rely on the scheme
URLs that are retrieved from the server.

Change-Id: I7077ce0dcf21941d44ec69e4aecf7adb94bbeebe
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2015-05-07 16:01:11 +02:00
committed by David Pursehouse
parent d0bde8e151
commit f94d06bc25
5 changed files with 45 additions and 150 deletions

View File

@@ -35,7 +35,6 @@ public class GerritConfig implements Cloneable {
protected GitwebConfig gitweb;
protected AuthType authType;
protected String gitDaemonUrl;
protected String gitHttpUrl;
protected String sshdAddress;
protected String editFullNameUrl;
protected Set<Account.FieldName> editableAccountFields;
@@ -152,17 +151,6 @@ public class GerritConfig implements Cloneable {
gitDaemonUrl = url;
}
public String getGitHttpUrl() {
return gitHttpUrl;
}
public void setGitHttpUrl(String url) {
if (url != null && !url.endsWith("/")) {
url += "/";
}
gitHttpUrl = url;
}
public String getSshdAddress() {
return sshdAddress;
}