mirror of
https://github.com/RSSNext/Folo.git
synced 2026-10-17 05:08:13 +08:00
ee11ca157d
Signed-off-by: Innei <i@innei.in>
11 lines
232 B
TypeScript
11 lines
232 B
TypeScript
import { execSync } from "node:child_process"
|
|
|
|
export const getGitHash = () => {
|
|
try {
|
|
return execSync("git rev-parse HEAD").toString().trim()
|
|
} catch (e) {
|
|
console.error("Failed to get git hash", e)
|
|
return ""
|
|
}
|
|
}
|