James Moger
2011-06-18 b01ca06b8d14634a2890590916450ef0e36f2b3a
Mount parameters setting.
2 files modified
9 ■■■■■ changed files
distrib/gitblit.properties 6 ●●●●● patch | view | raw | blame | history
src/com/gitblit/wicket/GitBlitWebApp.java 3 ●●●●● patch | view | raw | blame | history
distrib/gitblit.properties
@@ -78,6 +78,12 @@
web.datestampShortFormat = yyyy-MM-dd
web.datetimestampLongFormat = EEEE, MMMM d, yyyy h:mm a z
# Mount parameters
# true: http://localhost/commit/myrepo/abcdef
# false: http://localhost/commit/?r=myrepo&h=abcdef
# Changing this value requires a server restart.
web.mountParameters = true
# Show other URLs on the summary page for accessing your git repositories
# Use spaces to separate urls. {0} is the token for the repository name.
# e.g.
src/com/gitblit/wicket/GitBlitWebApp.java
@@ -107,6 +107,9 @@
        if (parameters == null) {
            parameters = new String[] {};
        }
        if (!GitBlit.getBoolean(Keys.web.mountParameters, true)) {
            parameters = new String[] {};
        }
        mount(new MixedParamUrlCodingStrategy(location, clazz, parameters));
    }