diff --git a/packages/default-plugins/buildDefaultPlugins.ts b/packages/default-plugins/buildDefaultPlugins.ts index a5bfe3b6d2a..c764ea3935b 100644 --- a/packages/default-plugins/buildDefaultPlugins.ts +++ b/packages/default-plugins/buildDefaultPlugins.ts @@ -41,7 +41,7 @@ const buildDefaultPlugins = async (outputParentDir: string|null, beforeInstall: } chdir(pluginDir); - const currentCommitHash = (await execCommand(['git', 'rev-parse', 'HEAD~'])).trim(); + const currentCommitHash = (await execCommand(['git', 'rev-parse', 'HEAD'])).trim(); const expectedCommitHash = repositoryData.commit; if (currentCommitHash !== expectedCommitHash) {