1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

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.
This commit is contained in:
Henry Heino
2024-02-01 08:06:29 -08:00
committed by GitHub
parent e4197a985e
commit 99e8818ba0

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