Skip to content

Commit

Permalink
fix: correct for new execGitNode syntax (nodejs#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere authored Jun 3, 2020
1 parent d3816ad commit 6d82a73
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions lib/update-v8/commitUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function() {
title: 'Commit V8 update',
task: async(ctx) => {
const newV8Version = util.getNodeV8Version(ctx.nodeDir).join('.');
await ctx.execGitNode('add', 'deps/v8');
await ctx.execGitNode('add', ['deps/v8']);
const moreArgs = [];
let message;
if (ctx.minor) {
Expand All @@ -21,7 +21,7 @@ module.exports = function() {
} else {
message = `deps: update V8 to ${newV8Version}`;
}
await ctx.execGitNode('commit', '-m', message, ...moreArgs);
await ctx.execGitNode('commit', ['-m', message, ...moreArgs]);
},
skip: (ctx) => ctx.skipped
};
Expand Down
18 changes: 9 additions & 9 deletions lib/update-v8/updateVersionNumbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@ function bumpNodeModule() {
await updateModuleVersion(ctx.nodeDir, newModuleVersion, v8Version);
await ctx.execGitNode(
'add',
'doc/abi_version_registry.json',
'src/node_version.h'
['doc/abi_version_registry.json', 'src/node_version.h']
);
await ctx.execGitNode(
'commit',
'-m',
getCommitTitle(newModuleVersion),
'-m',
getCommitBody(v8Version)
[
'-m',
getCommitTitle(newModuleVersion),
'-m',
getCommitBody(v8Version)
]
);
},
skip: (ctx) => !ctx.versionBump
Expand Down Expand Up @@ -103,11 +104,10 @@ function resetEmbedderString() {
commonGypiPath,
commonGypi.replace(embedderRegex, embedderString)
);
await ctx.execGitNode('add', 'common.gypi');
await ctx.execGitNode('add', ['common.gypi']);
await ctx.execGitNode(
'commit',
'-m',
'build: reset embedder string to "-node.0"'
['-m', 'build: reset embedder string to "-node.0"']
);
} else {
return task.skip('Embedder version is already 0');
Expand Down

0 comments on commit 6d82a73

Please sign in to comment.