File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,7 @@ const commitlint = require('@commitlint/cli');
6
6
const IF_CI = ! ! argv . ifCi ;
7
7
const PR_ONLY = ! ! argv . prOnly ;
8
8
9
- // Allow to override used bins for testing purposes
10
- const GIT = process . env . JENKINS_COMMITLINT_GIT_BIN || 'git' ;
9
+ // Allow override of used bins for testing purposes
11
10
const COMMITLINT = process . env . JENKINS_COMMITLINT_BIN ;
12
11
13
12
const REQUIRED = [ 'GIT_COMMIT' ] ;
@@ -50,7 +49,7 @@ async function main() {
50
49
}
51
50
52
51
async function getBase ( { branch, tip = 'HEAD' } ) {
53
- const result = await execa ( GIT , [ 'merge-base' , branch , tip ] ) ;
52
+ const result = await execa ( 'git' , [ 'merge-base' , branch , tip ] ) ;
54
53
return result . stdout ;
55
54
}
56
55
@@ -62,7 +61,7 @@ async function lint(args, options) {
62
61
}
63
62
64
63
async function rawCommit ( hash ) {
65
- const result = await execa ( GIT , [ 'show' , '--pretty=format:%B' , hash ] ) ;
64
+ const result = await execa ( 'git' , [ 'show' , '--pretty=format:%B' , hash ] ) ;
66
65
return result . stdout ;
67
66
}
68
67
You can’t perform that action at this time.
0 commit comments