@@ -10,17 +10,17 @@ export default commit;
1010/**
1111 * Takes all of the final inputs needed in order to make dispatch a git commit
1212 */
13- function dispatchGitCommit ( sh , repoPath , template , options , overrideOptions , done ) {
13+ function dispatchGitCommit ( repoPath , template , options , overrideOptions , done ) {
1414 // 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 ) {
1616 done ( error , template ) ;
1717 } ) ;
1818}
1919
2020 /**
2121 * Asynchronously commits files using commitizen
2222 */
23- function commit ( sh , inquirer , repoPath , prompter , options , done ) {
23+ function commit ( inquirer , repoPath , prompter , options , done ) {
2424 var cacheDirectory = cacheDir ( 'commitizen' ) ;
2525 var cachePath = path . join ( cacheDirectory , 'commitizen.json' ) ;
2626
@@ -40,7 +40,7 @@ function commit (sh, inquirer, repoPath, prompter, options, done) {
4040 overrideOptions : retryOverrideOptions ,
4141 template : retryTemplate
4242 } = cache . getCacheValueSync ( cachePath , repoPath ) ;
43- dispatchGitCommit ( sh , repoPath , retryTemplate , retryOptions , retryOverrideOptions , done ) ;
43+ dispatchGitCommit ( repoPath , retryTemplate , retryOptions , retryOverrideOptions , done ) ;
4444
4545 } else {
4646 // Get user input -- side effect that is hard to test
@@ -59,7 +59,7 @@ function commit (sh, inquirer, repoPath, prompter, options, done) {
5959
6060 // We don't want to add retries to the cache, only actual commands
6161 cache . setCacheValueSync ( cachePath , repoPath , { template, options, overrideOptions } ) ;
62- dispatchGitCommit ( sh , repoPath , template , options , overrideOptions , done ) ;
62+ dispatchGitCommit ( repoPath , template , options , overrideOptions , done ) ;
6363 } ) ;
6464 }
6565 }
0 commit comments