From bb9988c2368f1986fc0d59cc44fa754f22ca2708 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Mon, 25 Jul 2016 14:43:33 +0900 Subject: LfsProtocolServlet: Pass request and path to getLargeFileRepository Passing the request and path to the method will allow implementations to have more control over determination of the backend, for example: - return different backends for different requests - accept or refuse requests based on request characteristics - etc Change-Id: I1ec6ec54c91a5f0601b620ed18846eb4a3f46783 Signed-off-by: David Pursehouse --- org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/LfsStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'org.eclipse.jgit.pgm/src/org') diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/LfsStore.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/LfsStore.java index 00bea86c41..c4d95481f1 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/LfsStore.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/LfsStore.java @@ -253,10 +253,10 @@ class LfsStore extends TextBuiltin { private static final long serialVersionUID = 1L; @Override - protected LargeFileRepository getLargeFileRepository() { + protected LargeFileRepository getLargeFileRepository( + LfsRequest request, String path) { return repository; } - }; app.addServlet(new ServletHolder(protocol), PROTOCOL_PATH); -- cgit v1.2.3