diff options
author | Paul Martin <paul@paulsputer.com> | 2015-12-03 16:45:12 +0000 |
---|---|---|
committer | Paul Martin <paul@paulsputer.com> | 2015-12-03 16:45:12 +0000 |
commit | da29a4cfcdc35b50d9f56571f886ca355f452913 (patch) | |
tree | a754b6948cb22de4b8610748c14515a765490607 /src | |
parent | c332d9a3d4d9485cfe60fb8dd9db7dbde971642c (diff) | |
download | gitblit-da29a4cfcdc35b50d9f56571f886ca355f452913.tar.gz gitblit-da29a4cfcdc35b50d9f56571f886ca355f452913.zip |
fix for #968 extracting repository from URI
+ Allows using lfs when `server.contextPath = /git`
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/gitblit/servlet/FilestoreServlet.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; |