From 7575805b27580ac6dcde1c1a188ca71cca1cf41a Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Thu, 28 Aug 2025 14:22:54 -0700 Subject: [PATCH] Keep only 3 first numbers from git version --- src/utils/gitUtil.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/gitUtil.mts b/src/utils/gitUtil.mts index 3e434931..720a12e8 100644 --- a/src/utils/gitUtil.mts +++ b/src/utils/gitUtil.mts @@ -26,7 +26,7 @@ export async function checkGitVersion( console.debug( `Git version check result: ${ret.stderr} stdout: ${ret.stdout}` ); - const regex = /git version (\d+\.\d+(\.\d+)*)/; + const regex = /git version (\d+\.\d+\.\d+)/; const match = regex.exec(ret.stdout); if (match && match[1]) { const gitVersion = match[1];