From c4572b45d2f4b2fc97f52e8495a16aa2aef4b529 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Tue, 21 May 2024 14:09:06 +0100 Subject: [PATCH] Reference binary as a variable, rather than config setting --- config/git.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/git.php b/config/git.php index f6a3e6427d..4d0a78a4e5 100644 --- a/config/git.php +++ b/config/git.php @@ -116,7 +116,7 @@ | */ - 'binary' => env('STATAMIC_GIT_BINARY', 'git'), + 'binary' => $binary = env('STATAMIC_GIT_BINARY', 'git'), /* |-------------------------------------------------------------------------- @@ -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 }}"', ], /*