From fcaeaa54102a8de9f36cdfd67b12fa4c540b1197 Mon Sep 17 00:00:00 2001 From: James Moger Date: Thu, 27 Mar 2014 09:01:43 -0400 Subject: [PATCH] Ensure Lucene ticket index is updated on repository deletion --- releases.moxie | 3 ++- src/main/java/com/gitblit/GitBlit.java | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) 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; } -- 2.39.5