Skip to content

Commit

Permalink
[5.x] Reference git binary as a variable, rather than config setting (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored May 21, 2024
1 parent cc7d215 commit cde0205
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/git.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
|
*/

'binary' => env('STATAMIC_GIT_BINARY', 'git'),
'binary' => $binary = env('STATAMIC_GIT_BINARY', 'git'),

/*
|--------------------------------------------------------------------------
Expand All @@ -132,8 +132,8 @@
*/

'commands' => [
config('statamic.git.binary').' add {{ paths }}',
config('statamic.git.binary').' -c "user.name={{ name }}" -c "user.email={{ email }}" commit -m "{{ message }}"',
$binary.' add {{ paths }}',
$binary.' -c "user.name={{ name }}" -c "user.email={{ email }}" commit -m "{{ message }}"',
],

/*
Expand Down

0 comments on commit cde0205

Please sign in to comment.