From: James Moger Date: Thu, 27 Mar 2014 13:01:43 +0000 (-0400) Subject: Ensure Lucene ticket index is updated on repository deletion X-Git-Tag: v1.5.0~94 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fcaeaa54102a8de9f36cdfd67b12fa4c540b1197;p=gitblit.git Ensure Lucene ticket index is updated on repository deletion --- diff --git a/releases.moxie b/releases.moxie index 20726fe1..80f10ba5 100644 --- a/releases.moxie +++ b/releases.moxie @@ -9,7 +9,8 @@ r22: { html: ~ text: ~ security: ~ - fixes: ~ + fixes: + - Ensure the Lucene ticket index is updated on repository deletion. changes: ~ additions: ~ dependencyChanges: ~ diff --git a/src/main/java/com/gitblit/GitBlit.java b/src/main/java/com/gitblit/GitBlit.java index b706874a..bbc8bd37 100644 --- a/src/main/java/com/gitblit/GitBlit.java +++ b/src/main/java/com/gitblit/GitBlit.java @@ -180,9 +180,14 @@ public class GitBlit extends GitblitManager { @Override public boolean deleteRepository(String repositoryName) { RepositoryModel repository = repositoryManager.getRepositoryModel(repositoryName); - boolean success = repositoryManager.deleteRepository(repositoryName); + return deleteRepositoryModel(repository); + } + + @Override + public boolean deleteRepositoryModel(RepositoryModel model) { + boolean success = repositoryManager.deleteRepositoryModel(model); if (success && ticketService != null) { - return ticketService.deleteAll(repository); + return ticketService.deleteAll(model); } return success; }