cobalt/modules/sub/current-commit.js
2022-07-09 00:17:56 +06:00

5 lines
140 B
JavaScript

import { execSync } from "child_process";
export default function() {
return execSync('git rev-parse --short HEAD').toString().trim()
}