From: James Moger Date: Mon, 8 Sep 2014 22:06:09 +0000 (-0400) Subject: Fix repository deletion bug where the Lucene ticket index was not purged X-Git-Tag: v1.6.1~36^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c599bd17342d7019c68cd6dbea48c0b27efebd38;p=gitblit.git Fix repository deletion bug where the Lucene ticket index was not purged --- diff --git a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java index b5c46ac2..318b2b72 100644 --- a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java +++ b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java @@ -681,7 +681,7 @@ public class EditRepositoryPage extends RootSubPage { RepositoryModel latestModel = app().repositories().getRepositoryModel(repositoryModel.name); boolean canDelete = app().repositories().canDelete(latestModel); if (canDelete) { - if (app().repositories().deleteRepositoryModel(latestModel)) { + if (app().gitblit().deleteRepositoryModel(latestModel)) { info(MessageFormat.format(getString("gb.repositoryDeleted"), latestModel)); if (latestModel.isPersonalRepository()) { // redirect to user's profile page