diff --git a/gerrit-pgm/src/main/java/com/google/gerrit/pgm/init/InitPlugins.java b/gerrit-pgm/src/main/java/com/google/gerrit/pgm/init/InitPlugins.java index 7712821052..0e815ed23d 100644 --- a/gerrit-pgm/src/main/java/com/google/gerrit/pgm/init/InitPlugins.java +++ b/gerrit-pgm/src/main/java/com/google/gerrit/pgm/init/InitPlugins.java @@ -117,7 +117,7 @@ public class InitPlugins implements InitStep { continue; } - final File p = new File(site.plugins_dir, plugin.pluginFile.getName()); + final File p = new File(site.plugins_dir, plugin.name + ".jar"); if (p.exists()) { final String installedPluginVersion = getVersion(p); if (!ui.yesno(false,