]> source.dussan.org Git - gitblit.git/commitdiff
Automatically disable the Git daemon on Express
authorJames Moger <james.moger@gitblit.com>
Sat, 16 Nov 2013 14:12:43 +0000 (09:12 -0500)
committerJames Moger <james.moger@gitblit.com>
Tue, 26 Nov 2013 21:07:04 +0000 (16:07 -0500)
Change-Id: Ide78d4c5db59a734060ce527a59450eed8433c1a

src/main/java/com/gitblit/GitBlit.java

index 97372e11b7f1ce78b54d68a217764d392ef9f64e..6d52e763dff8ef901b49aa904097dacce7c2c457 100644 (file)
@@ -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 {