Skip to content

Commit

Permalink
feat: git command output as debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Oct 25, 2019
1 parent f2048cd commit 2f40aac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ async function git(args, execaOpts) {
debug(`${chalk.keyword('orange')(cwd)} > git ${args.join(' ')}`);

try {
const output = await execa('git', args, execaOpts).stdout;
debug(output);
return output;
const result = await execa('git', args, execaOpts);
debug(result.stdout);
return result.stdout;
} catch (error) {
debug(error.all);
throw new Error(error.all);
Expand Down

0 comments on commit 2f40aac

Please sign in to comment.