]> source.dussan.org Git - gitblit.git/commitdiff
Fix repository deletion bug where the Lucene ticket index was not purged 74/174/1
authorJames Moger <james.moger@gitblit.com>
Mon, 8 Sep 2014 22:06:09 +0000 (18:06 -0400)
committerJames Moger <james.moger@gitblit.com>
Mon, 8 Sep 2014 22:06:09 +0000 (18:06 -0400)
src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java

index b5c46ac296331ef54febcb3d5edfc1c9106b3a0e..318b2b72e88af8b60d39f635a8f1d7421d824e60 100644 (file)
@@ -681,7 +681,7 @@ public class EditRepositoryPage extends RootSubPage {
                                RepositoryModel latestModel = app().repositories().getRepositoryModel(repositoryModel.name);\r
                                boolean canDelete = app().repositories().canDelete(latestModel);\r
                                if (canDelete) {\r
-                                       if (app().repositories().deleteRepositoryModel(latestModel)) {\r
+                                       if (app().gitblit().deleteRepositoryModel(latestModel)) {\r
                                                info(MessageFormat.format(getString("gb.repositoryDeleted"), latestModel));\r
                                                if (latestModel.isPersonalRepository()) {\r
                                                        // redirect to user's profile page\r