summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/LuceneExecutor.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-03-27 19:40:27 -0400
committerJames Moger <james.moger@gitblit.com>2012-03-27 19:40:27 -0400
commit6ef2fcaa22f4295c3c1185883e9e891009140cb4 (patch)
tree1cc20818dff9106bc55e28c84fd194434a3b4e72 /src/com/gitblit/LuceneExecutor.java
parent80415e1d9bd3a4afdaee1037067e21873c61b425 (diff)
downloadgitblit-5b878136c5f6094c473b225916affcb1545eb2ec.tar.gz
gitblit-5b878136c5f6094c473b225916affcb1545eb2ec.zip
Release 0.9.1v0.9.1
Diffstat (limited to 'src/com/gitblit/LuceneExecutor.java')
-rw-r--r--src/com/gitblit/LuceneExecutor.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/gitblit/LuceneExecutor.java b/src/com/gitblit/LuceneExecutor.java
index 961267b2..afd1cc5a 100644
--- a/src/com/gitblit/LuceneExecutor.java
+++ b/src/com/gitblit/LuceneExecutor.java
@@ -73,6 +73,7 @@ import org.eclipse.jgit.lib.ObjectId;
import org.eclipse.jgit.lib.ObjectLoader;
import org.eclipse.jgit.lib.ObjectReader;
import org.eclipse.jgit.lib.Repository;
+import org.eclipse.jgit.lib.RepositoryCache.FileKey;
import org.eclipse.jgit.revwalk.RevCommit;
import org.eclipse.jgit.revwalk.RevTree;
import org.eclipse.jgit.revwalk.RevWalk;
@@ -1042,8 +1043,8 @@ public class LuceneExecutor implements Runnable {
* @throws IOException
*/
private IndexWriter getIndexWriter(String repository) throws IOException {
- IndexWriter indexWriter = writers.get(repository);
- File repositoryFolder = new File(repositoriesFolder, repository);
+ IndexWriter indexWriter = writers.get(repository);
+ File repositoryFolder = FileKey.resolve(new File(repositoriesFolder, repository), FS.DETECTED);
File indexFolder = new File(repositoryFolder, LUCENE_DIR);
Directory directory = FSDirectory.open(indexFolder);