From f7e97712b5c4edd72cad1e8e54490de02a766224 Mon Sep 17 00:00:00 2001 From: James Moger Date: Wed, 2 Apr 2014 09:41:44 -0400 Subject: [PATCH] Fix ${baseFolder}/plugins mkdir bug --- src/main/java/com/gitblit/manager/PluginManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/gitblit/manager/PluginManager.java b/src/main/java/com/gitblit/manager/PluginManager.java index 7b03f50d..47154b87 100644 --- a/src/main/java/com/gitblit/manager/PluginManager.java +++ b/src/main/java/com/gitblit/manager/PluginManager.java @@ -244,6 +244,7 @@ public class PluginManager extends DefaultPluginManager implements IPluginManage */ protected boolean download(String url) throws IOException { File pFolder = runtimeManager.getFileOrFolder(Keys.plugins.folder, "${baseFolder}/plugins"); + pFolder.mkdirs(); File tmpFile = new File(pFolder, StringUtils.getSHA1(url) + ".tmp"); if (tmpFile.exists()) { tmpFile.delete(); -- 2.39.5