fix(commit.ts): add --verbose flag to git push command (#43)

* 🐛 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.
This commit is contained in:
jessicakuijer
2023-03-28 05:18:34 +02:00
committed by GitHub
parent 284604f6a4
commit 8b17b5e906

View File

@@ -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);
}
}