James Moger
2011-07-01 373a964ce5b9107db243ff13dfd19a934cd7be49
src/com/gitblit/DownloadZipServlet.java
@@ -41,7 +41,10 @@
   }
   public static String asLink(String baseURL, String repository, String objectId, String path) {
      return baseURL + (baseURL.endsWith("/") ? "" : "/") + "zip?r=" + repository
      if (baseURL.length() > 0 && baseURL.charAt(baseURL.length() - 1) == '/') {
         baseURL = baseURL.substring(0, baseURL.length() - 1);
      }
      return baseURL + Constants.ZIP_PATH + "?r=" + repository
            + (path == null ? "" : ("&p=" + path))
            + (objectId == null ? "" : ("&h=" + objectId));
   }