return this;
}
+ @Override
+ public boolean isServingRepositories() {
+ return servicesManager.isServingRepositories();
+ }
+
protected Object [] getModules() {
return new Object [] { new GitBlitModule()};
}
*/
@Override
public boolean isServingRepositories() {
- return settings.getBoolean(Keys.git.enableGitServlet, true) || (settings.getInteger(Keys.git.daemonPort, 0) > 0);
+ return settings.getBoolean(Keys.git.enableGitServlet, true)
+ || (settings.getInteger(Keys.git.daemonPort, 0) > 0)
+ || (settings.getInteger(Keys.git.sshPort, 0) > 0);
}
/**
return this;
}
+ public boolean isServingRepositories() {
+ return settings.getBoolean(Keys.git.enableGitServlet, true)
+ || (gitDaemon != null && gitDaemon.isRunning())
+ || (sshDaemon != null && sshDaemon.isRunning());
+ }
+
protected void configureFederation() {
boolean validPassphrase = true;
String passphrase = settings.getString(Keys.federation.passphrase, "");
if (repository.isMirror) {\r
urlPanel.add(WicketUtils.newImage("accessRestrictionIcon", "mirror_16x16.png",\r
getString("gb.isMirror")));\r
- } else if (app().runtime().isServingRepositories()) {\r
+ } else if (app().gitblit().isServingRepositories()) {\r
switch (repository.accessRestriction) {\r
case NONE:\r
urlPanel.add(WicketUtils.newClearPixel("accessRestrictionIcon").setVisible(false));\r