Skip to content

Commit

Permalink
fixed duplicate search results
Browse files Browse the repository at this point in the history
  • Loading branch information
sdorra committed Apr 4, 2018
1 parent ed4357e commit db4909f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,17 @@ private void createClone() throws GitAPIException, IOException {
}
}

createSearchIndexDirectory();
createRepositoryChangedEvent();
}

private void createSearchIndexDirectory() {
File directory = directoryResolver.resolveSearchIndex(wiki.getId());
if (!directory.exists() && !directory.mkdirs()) {
throw new IllegalStateException("failed to create search index directory at " + directory);
}
}

private void createRepositoryChangedEvent() throws IOException {
URI repositoryUri = repository.toURI();

Expand Down

0 comments on commit db4909f

Please sign in to comment.