summaryrefslogtreecommitdiffstats
path: root/src
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
parent80415e1d9bd3a4afdaee1037067e21873c61b425 (diff)
downloadgitblit-0.9.1.tar.gz
gitblit-0.9.1.zip
Release 0.9.1v0.9.1
Diffstat (limited to 'src')
-rw-r--r--src/com/gitblit/Constants.java4
-rw-r--r--src/com/gitblit/LuceneExecutor.java5
2 files changed, 5 insertions, 4 deletions
diff --git a/src/com/gitblit/Constants.java b/src/com/gitblit/Constants.java
index bbb986b2..dc541b07 100644
--- a/src/com/gitblit/Constants.java
+++ b/src/com/gitblit/Constants.java
@@ -30,11 +30,11 @@ public class Constants {
// The build script extracts this exact line so be careful editing it
// and only use A-Z a-z 0-9 .-_ in the string.
- public static final String VERSION = "1.0.0-SNAPSHOT";
+ public static final String VERSION = "0.9.1";
// The build script extracts this exact line so be careful editing it
// and only use A-Z a-z 0-9 .-_ in the string.
- public static final String VERSION_DATE = "PENDING";
+ public static final String VERSION_DATE = "2012-03-27";
// The build script extracts this exact line so be careful editing it
// and only use A-Z a-z 0-9 .-_ in the string.
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);