Skip to content

Commit 157ca83

Browse files
veblushwill-v-pi
authored andcommitted
Keep only 3 first numbers from git version (#205)
1 parent 908dc34 commit 157ca83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/gitUtil.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function checkGitVersion(
2626
console.debug(
2727
`Git version check result: ${ret.stderr} stdout: ${ret.stdout}`
2828
);
29-
const regex = /git version (\d+\.\d+(\.\d+)*)/;
29+
const regex = /git version (\d+\.\d+\.\d+)/;
3030
const match = regex.exec(ret.stdout);
3131
if (match && match[1]) {
3232
const gitVersion = match[1];

0 commit comments

Comments
 (0)