mirror of
https://github.com/laurent22/joplin.git
synced 2026-01-01 11:50:08 -06:00
8 lines
217 B
TypeScript
8 lines
217 B
TypeScript
import { execCommand } from '@joplin/utils';
|
|
|
|
const getCurrentCommitHash = async () => {
|
|
return (await execCommand(['git', 'rev-parse', '--verify', 'HEAD^{commit}'])).trim();
|
|
};
|
|
|
|
export default getCurrentCommitHash;
|