}
@Override
- public boolean refreshRegistry() {
- return pluginManager.refreshRegistry();
+ public boolean refreshRegistry(boolean verifyChecksum) {
+ return pluginManager.refreshRegistry(verifyChecksum);
}
@Override
/**
* Refresh the plugin registry.
+ *
+ * @param verifyChecksum
*/
- boolean refreshRegistry();
+ boolean refreshRegistry(boolean verifyChecksum);
/**
* Install the plugin from the specified url.
@CommandMetaData(name = "refresh", description = "Refresh the plugin registry data")
public static class RefreshPlugins extends SshCommand {
+
+ @Option(name = "--noverify", usage = "Disable checksum verification")
+ private boolean disableChecksum;
+
@Override
public void run() throws Failure {
IGitblit gitblit = getContext().getGitblit();
- gitblit.refreshRegistry();
+ gitblit.refreshRegistry(!disableChecksum);
}
}
@Option(name = "--updates", aliases = { "-u" }, usage = "show available updates")
protected boolean updates;
+ @Option(name = "--noverify", usage = "Disable checksum verification")
+ private boolean disableChecksum;
+
@Override
protected List<PluginRegistration> getItems() throws UnloggedFailure {
IGitblit gitblit = getContext().getGitblit();
if (refresh) {
- gitblit.refreshRegistry();
+ gitblit.refreshRegistry(!disableChecksum);
}
List<PluginRegistration> list;