diff --git a/src/main/scala/gitbucket/core/controller/PreProcessController.scala b/src/main/scala/gitbucket/core/controller/PreProcessController.scala
index 766bbb2..50023c4 100644
--- a/src/main/scala/gitbucket/core/controller/PreProcessController.scala
+++ b/src/main/scala/gitbucket/core/controller/PreProcessController.scala
@@ -7,14 +7,7 @@
trait PreProcessControllerBase extends ControllerBase {
/**
- * Provides GitHub compatible URLs for Git client.
- *
- *
- * - git clone http://localhost:8080/owner/repo
- * - git clone http://localhost:8080/owner/repo.git
- *
- *
- * @see https://git-scm.com/book/en/v2/Git-Internals-Transfer-Protocols
+ * Provides GitHub compatible URLs (e.g. http://localhost:8080/owner/repo.git) for Git client.
*/
get("/*/*/info/refs") {
val query = Option(request.getQueryString).map("?" + _).getOrElse("")
@@ -22,6 +15,14 @@
}
/**
+ * Provides GitHub compatible URLs for GitLFS client.
+ */
+ post("/*/*/info/lfs/objects/batch") {
+ val dispatcher = request.getRequestDispatcher("/git" + request.getRequestURI)
+ dispatcher.forward(request, response)
+ }
+
+ /**
* Filter requests from anonymous users.
*
* If anonymous access is allowed, pass all requests.