From 8b17b5e9069c28fd00b3b92bd90fc67fb9bfd9ff Mon Sep 17 00:00:00 2001 From: jessicakuijer <62114740+jessicakuijer@users.noreply.github.com> Date: Tue, 28 Mar 2023 05:18:34 +0200 Subject: [PATCH] fix(commit.ts): add --verbose flag to git push command (#43) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🐛 fix(commit.ts): add --verbose flag to git push command The --verbose flag is added to the git push command to provide more detailed output. This helps with debugging and identifying any issues that may arise during the push process. --- src/commands/commit.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/commands/commit.ts b/src/commands/commit.ts index af6759f..cc8eb13 100644 --- a/src/commands/commit.ts +++ b/src/commands/commit.ts @@ -87,7 +87,7 @@ ${chalk.grey('——————————————————')}` if (isPushConfirmedByUser && !isCancel(isPushConfirmedByUser)) { const pushSpinner = spinner(); pushSpinner.start(`Running \`git push ${remotes[0]}\``); - const { stdout } = await execa('git', ['push', remotes[0]]); + const { stdout } = await execa('git', ['push', '--verbose', remotes[0]]); pushSpinner.stop( `${chalk.green('✔')} successfully pushed all commits to ${remotes[0]}` ); @@ -196,6 +196,5 @@ export async function commit( outro(`${chalk.red('✖')} ${generateCommitError}`); process.exit(1); } - process.exit(0); -} +} \ No newline at end of file