From db9856512132ae979cf6abcbf69ee45948b5f374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= <5175937+theofidry@users.noreply.github.com> Date: Sun, 8 Oct 2023 22:53:44 +0200 Subject: [PATCH] fix: Fix the GNU diff command (#1039) --- src/Phar/PharDiff.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Phar/PharDiff.php b/src/Phar/PharDiff.php index a0b823258..fd705f9be 100644 --- a/src/Phar/PharDiff.php +++ b/src/Phar/PharDiff.php @@ -14,6 +14,7 @@ namespace KevinGH\Box\Phar; +use KevinGH\Box\Console\Command\Extract; use KevinGH\Box\Pharaoh\PharDiff as ParagoniePharDiff; use SplFileInfo; use Symfony\Component\Finder\Finder; @@ -71,7 +72,7 @@ public function gnuDiff(): ?string return self::getDiff( $this->pharInfoA, $this->pharInfoB, - 'diff', + 'diff --exclude='.Extract::PHAR_META_PATH, ); }