Skip to content

Commit

Permalink
fix(package): update execa to version 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeper[bot] authored and pvdlg committed Oct 28, 2019
1 parent 61df0ab commit 59bb812
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"url": "https://github.com/pvdlg/github-parser/issues"
},
"dependencies": {
"execa": "^1.0.0",
"execa": "^3.2.0",
"java-properties": "^1.0.0"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions test/helpers/git-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ export async function gitCheckout(branch, create, options) {
*/
export async function gitCommit(message, options) {
await execa('git', ['commit', '-m', message, '--allow-empty', '--no-gpg-sign'], options);
return execa.stdout('git', ['rev-parse', 'HEAD'], options);
return (await execa('git', ['rev-parse', 'HEAD'], options)).stdout;
}

/**
* @param {Object} [options] Options to pass to `execa`.
*
* @return {String} The sha of the head commit in the current git repository.
*/
export function gitHead(options) {
return execa.stdout('git', ['rev-parse', 'HEAD'], options);
export async function gitHead(options) {
return (await execa('git', ['rev-parse', 'HEAD'], options)).stdout;
}

0 comments on commit 59bb812

Please sign in to comment.