summaryrefslogtreecommitdiffstats
path: root/src/main/java/com
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-03-05 08:58:50 -0500
committerJames Moger <james.moger@gitblit.com>2014-03-05 08:58:50 -0500
commit41aaf7ac59be75e61b32c33c744ab6ba8e1d530d (patch)
tree255a1e616b8f9b4ba083274d702b31f41cbf41ea /src/main/java/com
parentfc9feed538a8260c37a291ea52a1191ee0aa77aa (diff)
downloadgitblit-41aaf7ac59be75e61b32c33c744ab6ba8e1d530d.tar.gz
gitblit-41aaf7ac59be75e61b32c33c744ab6ba8e1d530d.zip
Restart the response on the empty page if the repository has no commits
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/RepositoryPage.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java
index 59cbdc89..bed9fc34 100644
--- a/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java
@@ -29,6 +29,7 @@ import java.util.Set;
import org.apache.wicket.Component;
import org.apache.wicket.PageParameters;
+import org.apache.wicket.RestartResponseException;
import org.apache.wicket.behavior.SimpleAttributeModifier;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.DropDownChoice;
@@ -109,7 +110,7 @@ public abstract class RepositoryPage extends RootPage {
}
if (!getRepositoryModel().hasCommits) {
- setResponsePage(EmptyRepositoryPage.class, params);
+ throw new RestartResponseException(EmptyRepositoryPage.class, params);
}
if (getRepositoryModel().isCollectingGarbage) {