Chore: Desktop: Fix default-plugins build doesn't checkout the correct commit (#9813)

Fixes an issue where the default plugins build script didn't always checkout the correct commit before building.
pull/9810/head^2
Henry Heino 2024-02-01 08:06:29 -08:00 committed by GitHub
parent e4197a985e
commit 99e8818ba0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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) {