diff options
author | James Moger <james.moger@gitblit.com> | 2014-10-27 10:46:05 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-10-27 10:46:05 -0400 |
commit | 6ec71bc27f23c89f84bfb662ce180af3a9691dd8 (patch) | |
tree | 0e7ced487fadf2979bc3c0add1421fd21f2f3ce8 /src/main/java/com | |
parent | be5d1452fa95788fcca760b338416a5d29923a32 (diff) | |
download | gitblit-6ec71bc27f23c89f84bfb662ce180af3a9691dd8.tar.gz gitblit-6ec71bc27f23c89f84bfb662ce180af3a9691dd8.zip |
Fix PluginManager not properly respecting --noverify
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/gitblit/manager/PluginManager.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/manager/PluginManager.java b/src/main/java/com/gitblit/manager/PluginManager.java index 2ee48558..5e25caa1 100644 --- a/src/main/java/com/gitblit/manager/PluginManager.java +++ b/src/main/java/com/gitblit/manager/PluginManager.java @@ -421,6 +421,10 @@ public class PluginManager implements IPluginManager, PluginStateListener { protected File download(String url, boolean verifyChecksum) throws IOException { File file = downloadFile(url); + if (!verifyChecksum) { + return file; + } + File sha1File = null; try { sha1File = downloadFile(url + ".sha1"); |