cobalt/modules/sub/current-commit.js

5 lines
140 B
JavaScript
Raw Normal View History

2022-07-08 19:17:56 +01:00
import { execSync } from "child_process";
export default function() {
return execSync('git rev-parse --short HEAD').toString().trim()
}