@@ -10,17 +10,17 @@ export default commit;
10
10
/**
11
11
* Takes all of the final inputs needed in order to make dispatch a git commit
12
12
*/
13
- function dispatchGitCommit ( sh , repoPath , template , options , overrideOptions , done ) {
13
+ function dispatchGitCommit ( repoPath , template , options , overrideOptions , done ) {
14
14
// Commit the user input -- side effect that we'll test
15
- gitCommit ( sh , repoPath , template , { ...options , ...overrideOptions } , function ( error ) {
15
+ gitCommit ( repoPath , template , { ...options , ...overrideOptions } , function ( error ) {
16
16
done ( error , template ) ;
17
17
} ) ;
18
18
}
19
19
20
20
/**
21
21
* Asynchronously commits files using commitizen
22
22
*/
23
- function commit ( sh , inquirer , repoPath , prompter , options , done ) {
23
+ function commit ( inquirer , repoPath , prompter , options , done ) {
24
24
var cacheDirectory = cacheDir ( 'commitizen' ) ;
25
25
var cachePath = path . join ( cacheDirectory , 'commitizen.json' ) ;
26
26
@@ -40,7 +40,7 @@ function commit (sh, inquirer, repoPath, prompter, options, done) {
40
40
overrideOptions : retryOverrideOptions ,
41
41
template : retryTemplate
42
42
} = cache . getCacheValueSync ( cachePath , repoPath ) ;
43
- dispatchGitCommit ( sh , repoPath , retryTemplate , retryOptions , retryOverrideOptions , done ) ;
43
+ dispatchGitCommit ( repoPath , retryTemplate , retryOptions , retryOverrideOptions , done ) ;
44
44
45
45
} else {
46
46
// Get user input -- side effect that is hard to test
@@ -59,7 +59,7 @@ function commit (sh, inquirer, repoPath, prompter, options, done) {
59
59
60
60
// We don't want to add retries to the cache, only actual commands
61
61
cache . setCacheValueSync ( cachePath , repoPath , { template, options, overrideOptions } ) ;
62
- dispatchGitCommit ( sh , repoPath , template , options , overrideOptions , done ) ;
62
+ dispatchGitCommit ( repoPath , template , options , overrideOptions , done ) ;
63
63
} ) ;
64
64
}
65
65
}
0 commit comments