summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/GitBlit.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-03-27 09:01:43 -0400
committerJames Moger <james.moger@gitblit.com>2014-03-27 09:01:43 -0400
commitfcaeaa54102a8de9f36cdfd67b12fa4c540b1197 (patch)
tree9bf13f8793517d4bc9f46c1eacba2a8d5cbe7dee /src/main/java/com/gitblit/GitBlit.java
parent33ef3c2fb81744ed3f21a64f30a818531f1dd7e9 (diff)
downloadgitblit-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.java9
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;
}