config.unset(Constants.CONFIG_GITBLIT, null, "maxActivityCommits");
} else {
config.setInt(Constants.CONFIG_GITBLIT, null, "maxActivityCommits", repository.maxActivityCommits);
}
CommitMessageRenderer defaultRenderer = CommitMessageRenderer.fromName(settings.getString(Keys.web.commitMessageRenderer, null));
if (repository.commitMessageRenderer == null || repository.commitMessageRenderer == defaultRenderer) {
// use default from config
config.unset(Constants.CONFIG_GITBLIT, null, "commitMessageRenderer");
} else {
// repository overrides default