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
gitea/salix-front/pipeline/pr-test There was a failure building this commit
Details
This commit is contained in:
parent
7d51465e03
commit
5fa5776ee7
|
@ -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',
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue