Minor refactoring of gitewb config URLs
Change-Id: I77aa85ccab5574e1d64e6ae3df6b6950a1341c13
diff --git a/src/main/java/com/googlesource/gerrit/plugins/gitblit/GitBlitInitStep.java b/src/main/java/com/googlesource/gerrit/plugins/gitblit/GitBlitInitStep.java
index 99cd6de..75bb925 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/gitblit/GitBlitInitStep.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/gitblit/GitBlitInitStep.java
@@ -45,7 +45,7 @@
ui.message("\n");
ui.header("GitBlit Integration");
- if(ui.yesno(true, "Do you want to use GitBlit as your GitWeb viewer ?")) {
+ if (ui.yesno(true, "Do you want to use GitBlit as your GitWeb viewer?")) {
configureGitBlit();
}
// If we don't use GitBlit here, we leave a potential [plugin "gitblit"]
@@ -63,15 +63,13 @@
private void initGitWebConfig() {
Section gitWeb = sections.get("gitweb", null);
gitWeb.set("type", "custom");
- gitWeb.set("url", "plugins/");
- gitWeb.set("project", pluginName + "/summary/?r=${project}");
- gitWeb.set("revision", pluginName + "/commit/?r=${project}&h=${commit}");
- gitWeb.set("branch", pluginName + "/log/?r=${project}&h=${branch}");
- gitWeb.set("filehistory", pluginName
- + "/history/?f=${file}&r=${project}&h=${branch}");
- gitWeb
- .set("file", pluginName + "/blob/?r=${project}&h=${commit}&f=${file}");
- gitWeb.set("roottree", pluginName + "/tree/?r=${project}&h=${commit}");
+ gitWeb.set("url", "plugins/" + pluginName + '/');
+ gitWeb.set("project", "summary/?r=${project}");
+ gitWeb.set("revision", "commit/?r=${project}&h=${commit}");
+ gitWeb.set("branch", "log/?r=${project}&h=${branch}");
+ gitWeb.set("filehistory", "history/?f=${file}&r=${project}&h=${branch}");
+ gitWeb.set("file", "blob/?r=${project}&h=${commit}&f=${file}");
+ gitWeb.set("roottree", "tree/?r=${project}&h=${commit}");
gitWeb.string("Link name", "linkname", "GitBlit");
}