Skip to content

Commit

Permalink
Chore: Desktop: Fix default-plugins build doesn't checkout the correc…
Browse files Browse the repository at this point in the history
…t commit (#9813)

Fixes an issue where the default plugins build script didn't always checkout the correct commit before building.
  • Loading branch information
personalizedrefrigerator authored Feb 1, 2024
1 parent e4197a9 commit 99e8818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/default-plugins/buildDefaultPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

1 comment on commit 99e8818

@personalizedrefrigerator
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #9812 for related refactoring.

Please sign in to comment.