SponsorBlockServer/src/utils/getCommit.ts
2021-09-01 16:52:41 -04:00

4 lines
No EOL
161 B
TypeScript

import { execSync } from "child_process";
const gitCommand = "git rev-parse HEAD";
export const getCommit = ():string => execSync(gitCommand).toString().trim();