From 5fa5776ee71d7b25f6054c31abbbb247a2b831aa Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 17 Apr 2025 15:08:30 +0200 Subject: [PATCH] fix: ensure git fetch is executed with the correct encoding in getGitDiff function --- test/cypress/docker/find/find.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/cypress/docker/find/find.js b/test/cypress/docker/find/find.js index 4f8063c86..9570dafaa 100644 --- a/test/cypress/docker/find/find.js +++ b/test/cypress/docker/find/find.js @@ -6,6 +6,9 @@ const FINDED_PATHS = ['src', E2E_PATH]; function getGitDiff(options) { const TARGET_BRANCH = options[2] || 'dev'; + execSync(`git fetch origin ${TARGET_BRANCH}`, { + encoding: 'utf-8', + }); const diff = execSync(`git diff --name-only origin/${TARGET_BRANCH}`, { encoding: 'utf-8', });