]> source.dussan.org Git - gitblit.git/commitdiff
Delay setup of the repositories folder to start()
authorJames Moger <james.moger@gitblit.com>
Wed, 2 Jul 2014 21:51:35 +0000 (17:51 -0400)
committerJames Moger <james.moger@gitblit.com>
Thu, 3 Jul 2014 21:00:41 +0000 (17:00 -0400)
src/main/java/com/gitblit/manager/RepositoryManager.java

index 24f35734b0350123e648577b3f80d3b740b87fda..626dac4cf8de8b1904d352d7e75842414667e79d 100644 (file)
@@ -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