From c599bd17342d7019c68cd6dbea48c0b27efebd38 Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 8 Sep 2014 18:06:09 -0400 Subject: [PATCH] Fix repository deletion bug where the Lucene ticket index was not purged --- src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5