diff options
author | James Moger <james.moger@gitblit.com> | 2014-03-27 09:01:43 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-03-27 09:01:43 -0400 |
commit | fcaeaa54102a8de9f36cdfd67b12fa4c540b1197 (patch) | |
tree | 9bf13f8793517d4bc9f46c1eacba2a8d5cbe7dee /src/main/java/com/gitblit/GitBlit.java | |
parent | 33ef3c2fb81744ed3f21a64f30a818531f1dd7e9 (diff) | |
download | gitblit-fcaeaa54102a8de9f36cdfd67b12fa4c540b1197.tar.gz gitblit-fcaeaa54102a8de9f36cdfd67b12fa4c540b1197.zip |
Ensure Lucene ticket index is updated on repository deletion
Diffstat (limited to 'src/main/java/com/gitblit/GitBlit.java')
-rw-r--r-- | src/main/java/com/gitblit/GitBlit.java | 9 |
1 files changed, 7 insertions, 2 deletions
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; } |