cobalt/modules/sub/current-commit.js

5 lines
140 B
JavaScript
Raw Normal View History

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