From 8ee3774cf32fb233662ed816a3ea5ebbc95c0576 Mon Sep 17 00:00:00 2001 From: coffe0wl Date: Sat, 3 Jun 2023 19:49:47 +0300 Subject: [PATCH 1/2] fix: process does not terminate after creating a commit with the --retry option --- src/cli/strategies/git-cz.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli/strategies/git-cz.js b/src/cli/strategies/git-cz.js index 059c5f33..83ce7020 100644 --- a/src/cli/strategies/git-cz.js +++ b/src/cli/strategies/git-cz.js @@ -67,6 +67,7 @@ function gitCz (rawGitArgs, environment, adapterConfig) { if (error) { throw error; } + process.exit(); }); }, shouldStageAllFiles); From 07650527ee67388efe5c82aa767a3c2c9fc6a5aa Mon Sep 17 00:00:00 2001 From: coffe0wl Date: Sat, 3 Jun 2023 20:24:54 +0300 Subject: [PATCH 2/2] chore: provide process exit code 0 --- src/cli/strategies/git-cz.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/strategies/git-cz.js b/src/cli/strategies/git-cz.js index 83ce7020..3cdf9348 100644 --- a/src/cli/strategies/git-cz.js +++ b/src/cli/strategies/git-cz.js @@ -67,7 +67,7 @@ function gitCz (rawGitArgs, environment, adapterConfig) { if (error) { throw error; } - process.exit(); + process.exit(0); }); }, shouldStageAllFiles);