Skip to content

Commit a9e416c

Browse files
committed
enh: adjust relative path
1 parent d36ed7a commit a9e416c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

infra/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import * as path from 'node:path';
44
export const today = () => new Date().toISOString().split('T')[0];
55

66
export function getGitCommitHash(): string {
7-
const branch = fs.readFileSync('.git/HEAD', 'utf-8').trim();
7+
const branch = fs.readFileSync('../.git/HEAD', 'utf-8').trim();
88
if (branch.startsWith('ref:')) {
9-
const refPath = path.join('.git', branch.slice(5));
9+
const refPath = path.join('../.git', branch.slice(5));
1010
return fs.readFileSync(refPath, 'utf-8').trim();
1111
}
1212

0 commit comments

Comments
 (0)