mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-05-03 21:40:32 +00:00
11 lines
255 B
TypeScript
11 lines
255 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 '';
|
|
}
|
|
};
|