]> source.dussan.org Git - gitblit.git/commitdiff
fix for #968 extracting repository from URI 969/head
authorPaul Martin <paul@paulsputer.com>
Thu, 3 Dec 2015 16:45:12 +0000 (16:45 +0000)
committerPaul Martin <paul@paulsputer.com>
Thu, 3 Dec 2015 16:45:12 +0000 (16:45 +0000)
+ Allows using lfs when `server.contextPath = /git`

src/main/java/com/gitblit/servlet/FilestoreServlet.java

index 19751483ed16be1b3c194a783b38b7858f7cdec1..8f303fcfcdc4853f9672ce400c9f0d10f0ece74e 100644 (file)
@@ -63,7 +63,7 @@ public class FilestoreServlet extends HttpServlet {
        
        public static final String GIT_LFS_META_MIME = "application/vnd.git-lfs+json";
        
-       public static final String REGEX_PATH = "^(.*?)/(r|git)/(.*?)/info/lfs/objects/(batch|" + Constants.REGEX_SHA256 + ")";
+       public static final String REGEX_PATH = "^(.*?)/(r)/(.*?)/info/lfs/objects/(batch|" + Constants.REGEX_SHA256 + ")";
        public static final int REGEX_GROUP_BASE_URI = 1;
        public static final int REGEX_GROUP_PREFIX = 2;
        public static final int REGEX_GROUP_REPOSITORY = 3;