From da29a4cfcdc35b50d9f56571f886ca355f452913 Mon Sep 17 00:00:00 2001 From: Paul Martin Date: Thu, 3 Dec 2015 16:45:12 +0000 Subject: [PATCH] fix for #968 extracting repository from URI + Allows using lfs when `server.contextPath = /git` --- src/main/java/com/gitblit/servlet/FilestoreServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gitblit/servlet/FilestoreServlet.java b/src/main/java/com/gitblit/servlet/FilestoreServlet.java index 19751483..8f303fcf 100644 --- a/src/main/java/com/gitblit/servlet/FilestoreServlet.java +++ b/src/main/java/com/gitblit/servlet/FilestoreServlet.java @@ -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; -- 2.39.5