thaldrin/src/utils/git.ts

3 lines
134 B
TypeScript
Raw Normal View History

2021-05-23 03:59:25 +00:00
import { execSync } from 'child_process';
export const commitHash = execSync('git rev-parse HEAD', { encoding: 'utf8' }).slice(0, 8);