]> source.dussan.org Git - gitblit.git/commitdiff
Fix ${baseFolder}/plugins mkdir bug
authorJames Moger <james.moger@gitblit.com>
Wed, 2 Apr 2014 13:41:44 +0000 (09:41 -0400)
committerJames Moger <james.moger@gitblit.com>
Thu, 10 Apr 2014 23:00:52 +0000 (19:00 -0400)
src/main/java/com/gitblit/manager/PluginManager.java

index 7b03f50dd30c57e1d9eccc7a7067bee92a22f9a3..47154b87d4b821ae1cee5ddd92a684eecb0c40c6 100644 (file)
@@ -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();