File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ function execSync(command) {
36
36
}
37
37
38
38
// Determine origin repo and tag (or hash) of the most recent commit.
39
- const local_branch = execSync ( 'git name-rev --name-only HEAD' ) ;
40
- const tracking_remote = execSync ( `git config branch.${ local_branch } .remote` ) ;
41
- const remote_url = execSync ( `git config remote.${ tracking_remote } .url` ) ;
42
- const repo = ( remote_url . match ( / ( \w + \/ \w + ) \. g i t \r ? \n ? $ / ) ||
39
+ const localBranch = execSync ( 'git name-rev --name-only HEAD' ) ;
40
+ const trackingRemote = execSync ( `git config branch.${ localBranch } .remote` ) ;
41
+ const remoteUrl = execSync ( `git config remote.${ trackingRemote } .url` ) ;
42
+ const repo = ( remoteUrl . match ( / ( \w + \/ \w + ) \. g i t \r ? \n ? $ / ) ||
43
43
[ '' , 'nodejs/node' ] ) [ 1 ] ;
44
44
45
45
const hash = execSync ( 'git log -1 --pretty=%H' ) || 'master' ;
You can’t perform that action at this time.
0 commit comments