@@ -73,6 +73,8 @@ protected function initializeGitSubModule(string $gitPath, string $submodulePath
73
73
$ process = new Process (
74
74
[
75
75
$ this ->executableFinder ->find ('git ' ),
76
+ '-c ' ,
77
+ 'protocol.file.allow=always ' ,
76
78
'submodule ' ,
77
79
'add ' ,
78
80
'-f ' ,
@@ -174,7 +176,7 @@ protected function mergeComposerConfig(string $composerFile, array $config, $rec
174
176
$ this ->dumpFile ($ composerFile , json_encode ($ newSource , $ flags ));
175
177
}
176
178
177
- protected function ensureHooksExist (string $ gitPath = null , string $ containsPattern = '{grumphp} ' )
179
+ protected function ensureHooksExist (? string $ gitPath = null , string $ containsPattern = '{grumphp} ' )
178
180
{
179
181
$ gitPath = $ gitPath ?: $ this ->rootDir ;
180
182
$ hooks = ['pre-commit ' , 'commit-msg ' ];
@@ -346,7 +348,7 @@ protected function installComposer(string $path, array $arguments = [])
346
348
$ this ->runCommand ('install composer ' , $ process );
347
349
}
348
350
349
- protected function commitAll (string $ gitPath = null )
351
+ protected function commitAll (? string $ gitPath = null )
350
352
{
351
353
$ gitPath = $ gitPath ?: $ this ->rootDir ;
352
354
$ git = $ this ->executableFinder ->find ('git ' );
@@ -362,7 +364,7 @@ protected function commitAll(string $gitPath = null)
362
364
* --all: Tell the command to automatically stage files that have been modified and deleted,
363
365
* but new files you have not told Git about are not affected.
364
366
*/
365
- protected function commitModifiedAndDeleted (string $ gitPath = null )
367
+ protected function commitModifiedAndDeleted (? string $ gitPath = null )
366
368
{
367
369
$ gitPath = $ gitPath ?: $ this ->rootDir ;
368
370
$ git = $ this ->executableFinder ->find ('git ' );
@@ -382,7 +384,7 @@ protected function runGrumphp(string $projectPath, string $vendorPath = './vendo
382
384
{
383
385
$ projectPath = $ this ->relativeRootPath ($ projectPath );
384
386
$ process = new Process (
385
- [$ vendorPath .'/bin/grumphp ' , 'run ' , '-vvv ' ],
387
+ [$ this -> executableFinder -> find ( ' php ' ), $ vendorPath .'/bin/grumphp ' , 'run ' , '-vvv ' ],
386
388
$ projectPath
387
389
);
388
390
@@ -396,7 +398,7 @@ protected function runGrumphpWithConfig(string $projectPath, string $grumphpFile
396
398
$ projectPath = $ this ->relativeRootPath ($ projectPath );
397
399
$ this ->runCommand ('grumphp run with config ' ,
398
400
new Process (
399
- [$ vendorPath .'/bin/grumphp ' , 'run ' , '-vvv ' , '--config= ' .$ grumphpFile ],
401
+ [$ this -> executableFinder -> find ( ' php ' ), $ vendorPath .'/bin/grumphp ' , 'run ' , '-vvv ' , '--config= ' .$ grumphpFile ],
400
402
$ projectPath
401
403
)
402
404
);
@@ -407,7 +409,7 @@ protected function runGrumphpInfo(string $projectPath, $vendorPath = './vendor')
407
409
$ projectPath = $ this ->relativeRootPath ($ projectPath );
408
410
$ this ->runCommand ('grumphp info ' ,
409
411
new Process (
410
- [$ vendorPath .'/bin/grumphp ' ],
412
+ [$ this -> executableFinder -> find ( ' php ' ), $ vendorPath .'/bin/grumphp ' ],
411
413
$ projectPath
412
414
)
413
415
);
@@ -418,7 +420,7 @@ protected function initializeGrumphpGitHooksWithConfig(string $grumphpFile, $ven
418
420
$ this ->runCommand (
419
421
'grumphp git:init ' ,
420
422
new Process (
421
- [$ vendorPath .'/bin/grumphp ' , 'git:init ' , '--config= ' .$ grumphpFile ],
423
+ [$ this -> executableFinder -> find ( ' php ' ), $ vendorPath .'/bin/grumphp ' , 'git:init ' , '--config= ' .$ grumphpFile ],
422
424
$ this ->rootDir
423
425
)
424
426
);
0 commit comments