1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-18 09:35:20 +02:00
joplin/packages/default-plugins/utils/getCurrentCommitHash.ts

8 lines
217 B
TypeScript
Raw Normal View History

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