Skip to content

Commit d2f41f4

Browse files
chore: inherit stdio while pushing to remote repository
1 parent 261bc43 commit d2f41f4

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/utils/github.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const axios = require('axios');
44
const chalk = require('chalk');
55
const execa = require('execa');
66
const inquirer = require('inquirer');
7-
const ora = require('ora');
87

98
const validate = require('./validate');
109

@@ -146,14 +145,7 @@ const makeLocalCommit = async taskCount => {
146145

147146
const pushToRemote = async () => {
148147
console.log();
149-
const spinner = ora('Pushing to GitHub').start();
150-
try {
151-
await execa.shell('git push origin master');
152-
} catch (err) {
153-
spinner.fail('Something went wrong');
154-
throw err;
155-
}
156-
spinner.succeed('Saved user progress');
148+
await execa.shell('git push origin master', { stdio: 'inherit' });
157149
};
158150

159151
module.exports = {

0 commit comments

Comments
 (0)