summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/gitblit/manager/FilestoreManager.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/manager/FilestoreManager.java b/src/main/java/com/gitblit/manager/FilestoreManager.java
index 33672e4a..c15de5b4 100644
--- a/src/main/java/com/gitblit/manager/FilestoreManager.java
+++ b/src/main/java/com/gitblit/manager/FilestoreManager.java
@@ -102,8 +102,10 @@ public class FilestoreManager implements IFilestoreManager {
@Override
public IManager start() {
- //Try to load any existing metadata
- File metadata = new File(getStorageFolder(), METAFILE);
+ // Try to load any existing metadata
+ File dir = getStorageFolder();
+ dir.mkdirs();
+ File metadata = new File(dir, METAFILE);
if (metadata.exists()) {
Collection<FilestoreModel> items = null;