mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
13 lines
238 B
TypeScript
13 lines
238 B
TypeScript
import { execSync } from "child_process"
|
|
|
|
export function getGitSha() {
|
|
let gitSha: string | undefined = undefined
|
|
|
|
try {
|
|
gitSha = execSync("git rev-parse HEAD").toString().trim()
|
|
} catch (_e) {
|
|
// Do nothing.
|
|
}
|
|
|
|
return gitSha
|
|
}
|