From 718ae7b9f7970ea4475027c8ef91875c0bea5861 Mon Sep 17 00:00:00 2001 From: James Moger Date: Sat, 16 Nov 2013 09:12:43 -0500 Subject: [PATCH] Automatically disable the Git daemon on Express Change-Id: Ide78d4c5db59a734060ce527a59450eed8433c1a --- src/main/java/com/gitblit/GitBlit.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/gitblit/GitBlit.java b/src/main/java/com/gitblit/GitBlit.java index 97372e11..6d52e763 100644 --- a/src/main/java/com/gitblit/GitBlit.java +++ b/src/main/java/com/gitblit/GitBlit.java @@ -3772,6 +3772,10 @@ public class GitBlit implements ServletContextListener { } } + // disable Git daemon on Express - we can't bind 9418 and we + // can't port-forward to the daemon + webxmlSettings.overrideSetting(Keys.git.daemonPort, 0); + // configure context using the web.xml configureContext(webxmlSettings, base, true); } else { -- 2.39.5