]> source.dussan.org Git - jgit.git/commitdiff
git-servlet: Fix comparing uploadFactory with the wrong DISABLED instance 54/854/3
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 14 Jun 2010 21:33:02 +0000 (23:33 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 14 Jun 2010 21:47:59 +0000 (23:47 +0200)
Change-Id: I53f71dc0e3c68839da5ff5a2e0f3eeb8340e4793
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitServlet.java

index cc4cf6a800d098f6dd70550830e8f3f08c6f4a71..e28e4eeb299e46b4c6f9cb2b85ede43593294ae6 100644 (file)
@@ -185,7 +185,7 @@ public class GitServlet extends MetaServlet {
 
                initialized = true;
 
-               if (uploadPackFactory != ReceivePackFactory.DISABLED) {
+               if (uploadPackFactory != UploadPackFactory.DISABLED) {
                        serve("*/git-upload-pack")//
                                        .with(new UploadPackServlet(uploadPackFactory));
                }