From e490ac5cbd4fcc8110f96bba915f6e86361ca56a Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 7 May 2019 21:14:43 -0700 Subject: tools: switch to camelcasing in apilinks.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use camelcasing in tools/doc/apilinks.js. PR-URL: https://github.com/nodejs/node/pull/27607 Reviewed-By: Ruben Bridgewater Reviewed-By: Anto Aravinth Reviewed-By: Michaƫl Zasso Reviewed-By: Yongsheng Zhang Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Franziska Hinkelmann Reviewed-By: Trivikram Kamat --- tools/doc/apilinks.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/doc') diff --git a/tools/doc/apilinks.js b/tools/doc/apilinks.js index 514d22e8dc..461805dac3 100644 --- a/tools/doc/apilinks.js +++ b/tools/doc/apilinks.js @@ -36,10 +36,10 @@ function execSync(command) { } // Determine origin repo and tag (or hash) of the most recent commit. -const local_branch = execSync('git name-rev --name-only HEAD'); -const tracking_remote = execSync(`git config branch.${local_branch}.remote`); -const remote_url = execSync(`git config remote.${tracking_remote}.url`); -const repo = (remote_url.match(/(\w+\/\w+)\.git\r?\n?$/) || +const localBranch = execSync('git name-rev --name-only HEAD'); +const trackingRemote = execSync(`git config branch.${localBranch}.remote`); +const remoteUrl = execSync(`git config remote.${trackingRemote}.url`); +const repo = (remoteUrl.match(/(\w+\/\w+)\.git\r?\n?$/) || ['', 'nodejs/node'])[1]; const hash = execSync('git log -1 --pretty=%H') || 'master'; -- cgit v1.2.3