diff options
author | James Moger <james.moger@gitblit.com> | 2014-07-02 17:51:35 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-07-03 17:00:41 -0400 |
commit | 34ea0170815ade4a456fe23c1b4472852ed26107 (patch) | |
tree | be4f5e58d0f131d7de6945d1784696259759e36b | |
parent | 3610dc445e01ee07faae64acaabcdc00aac5e1b5 (diff) | |
download | gitblit-34ea0170815ade4a456fe23c1b4472852ed26107.tar.gz gitblit-34ea0170815ade4a456fe23c1b4472852ed26107.zip |
Delay setup of the repositories folder to start()
-rw-r--r-- | src/main/java/com/gitblit/manager/RepositoryManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/manager/RepositoryManager.java b/src/main/java/com/gitblit/manager/RepositoryManager.java index 24f35734..626dac4c 100644 --- a/src/main/java/com/gitblit/manager/RepositoryManager.java +++ b/src/main/java/com/gitblit/manager/RepositoryManager.java @@ -122,7 +122,7 @@ public class RepositoryManager implements IRepositoryManager { private final IUserManager userManager; - private final File repositoriesFolder; + private File repositoriesFolder; private LuceneService luceneExecutor; @@ -140,11 +140,11 @@ public class RepositoryManager implements IRepositoryManager { this.runtimeManager = runtimeManager; this.pluginManager = pluginManager; this.userManager = userManager; - this.repositoriesFolder = runtimeManager.getFileOrFolder(Keys.git.repositoriesFolder, "${baseFolder}/git"); } @Override public RepositoryManager start() { + repositoriesFolder = runtimeManager.getFileOrFolder(Keys.git.repositoriesFolder, "${baseFolder}/git"); logger.info("Repositories folder : {}", repositoriesFolder.getAbsolutePath()); // initialize utilities |