You've already forked joplin
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:
7
packages/default-plugins/utils/getCurrentCommitHash.ts
Normal file
7
packages/default-plugins/utils/getCurrentCommitHash.ts
Normal 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;
|
Reference in New Issue
Block a user