fix: ensure git fetch is executed with the correct encoding in getGitDiff function
gitea/salix-front/pipeline/pr-test There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-04-17 15:08:30 +02:00
parent 7d51465e03
commit 5fa5776ee7
1 changed files with 3 additions and 0 deletions

View File

@ -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',
});