private String getHttpHost()

in src/main/java/com/googlesource/gerrit/plugins/download/command/CloneWithCommitMsgHook.java [113:121]


  private String getHttpHost(DownloadScheme scheme, String project) {
    String host = scheme.getUrl(project);
    host = host.substring(0, host.lastIndexOf(project));
    int auth = host.lastIndexOf("/a/");
    if (auth > -1) {
      host = host.substring(0, auth + 1);
    }
    return host;
  }