From 88006b86935b50c51f5e3a601a765bf286f4b3d9 Mon Sep 17 00:00:00 2001 From: di-sukharev Date: Thu, 9 Mar 2023 21:23:58 +0800 Subject: [PATCH] * fix(commit.ts): add check for cancelation of `git push` confirmation prompt --- src/commands/commit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/commit.ts b/src/commands/commit.ts index 72e840f..4e8a410 100644 --- a/src/commands/commit.ts +++ b/src/commands/commit.ts @@ -51,7 +51,7 @@ ${chalk.grey('——————————————————')}` message: 'Do you want to run `git push`?' }); - if (isPushConfirmedByUser) { + if (isPushConfirmedByUser && !isCancel(isPushConfirmedByUser)) { const { stdout } = await execa('git', ['push']); outro(`${chalk.green('✔')} successfully pushed all commits`); outro(stdout);