From f13bf0d62dbbfdad085b69b2b003db682d114413 Mon Sep 17 00:00:00 2001 From: C-W-D-Harshit Date: Mon, 23 Mar 2026 16:20:09 +0530 Subject: [PATCH] fix(git): increase commit timeout to 120s for slow pre-commit hooks The git commit command used the default 30s timeout which causes failures for repositories with slow pre-commit hooks (e.g. linting, type-checking). Increase to 120s so hooks have time to complete. Fixes #1194 --- apps/server/src/git/Layers/GitCore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/git/Layers/GitCore.ts b/apps/server/src/git/Layers/GitCore.ts index 74c09da5f..03c6667f4 100644 --- a/apps/server/src/git/Layers/GitCore.ts +++ b/apps/server/src/git/Layers/GitCore.ts @@ -813,7 +813,7 @@ const makeGitCore = Effect.gen(function* () { if (trimmedBody.length > 0) { args.push("-m", trimmedBody); } - yield* runGit("GitCore.commit.commit", cwd, args); + yield* executeGit("GitCore.commit.commit", cwd, args, { timeoutMs: 120_000 }); const commitSha = yield* runGitStdout("GitCore.commit.revParseHead", cwd, [ "rev-parse", "HEAD",