1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Chore: Default plugins: Refactor git checkout in default plugins build (#9812)

This commit is contained in:
Henry Heino
2024-02-02 14:55:28 -08:00
committed by GitHub
parent 0e45336140
commit 9a26e8aafd
4 changed files with 22 additions and 11 deletions

View File

@ -0,0 +1,7 @@
import { execCommand } from '@joplin/utils';
const getCurrentCommitHash = async () => {
return (await execCommand(['git', 'rev-parse', '--verify', 'HEAD^{commit}'])).trim();
};
export default getCurrentCommitHash;