James Moger
2014-05-07 3b23dcdde4ef55927e45e56596e7023ce2cf9424
src/main/java/com/gitblit/Constants.java
@@ -68,7 +68,7 @@
   public static final String SPARKLESHARE_INVITE_PATH = "/sparkleshare/";
   public static final String BRANCH = "/branch/";
   public static final String RAW_PATH = "/raw/";
   public static final String BRANCH_GRAPH_PATH = "/graph/";
@@ -556,7 +556,12 @@
      }
      public static Transport fromUrl(String url) {
         String scheme = url.substring(0, url.indexOf("://"));
         int delim = url.indexOf("://");
         if (delim == -1) {
            // if no protocol is specified, SSH is assumed by git clients
            return SSH;
         }
         String scheme = url.substring(0, delim);
         return fromString(scheme);
      }
   }