Browse Source

LuceneExecutor could not delete the Lucene index from a working copy

tags/v1.1.0
James Moger 11 years ago
parent
commit
eb741abbb8
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      docs/04_releases.mkd
  2. 1
    1
      src/com/gitblit/LuceneExecutor.java

+ 1
- 0
docs/04_releases.mkd View File

@@ -11,6 +11,7 @@ If you are updating from an earlier release AND you have indexed branches with t
#### fixes
- Gitblit could not delete a Lucene index in a working copy on index upgrade
- Do not index submodule links (issue 119)
- Restore original user or team object on failure to update (issue 118)
- Fixes to relative path determination in repository search algorithm for symlinks (issue 116)

+ 1
- 1
src/com/gitblit/LuceneExecutor.java View File

@@ -286,7 +286,7 @@ public class LuceneExecutor implements Runnable {
close(repositoryName);
// delete the index folder
File repositoryFolder = new File(repositoriesFolder, repositoryName);
File repositoryFolder = FileKey.resolve(new File(repositoriesFolder, repositoryName), FS.DETECTED);
File luceneIndex = new File(repositoryFolder, LUCENE_DIR);
if (luceneIndex.exists()) {
org.eclipse.jgit.util.FileUtils.delete(luceneIndex,

Loading…
Cancel
Save