Parse diff info from git's stdout and not stdout+stderr

Co-Authored-By: Markus Olsson <634063+niik@users.noreply.github.com>
This commit is contained in:
Sergio Padrino 2023-08-28 08:48:42 +02:00
parent 227b1e3701
commit afe838dff1

View file

@ -175,12 +175,7 @@ export async function getBranchMergeBaseDiff(
maxBuffer: Infinity,
})
return buildDiff(
Buffer.from(result.combinedOutput),
repository,
file,
latestCommit
)
return buildDiff(Buffer.from(result.stdout), repository, file, latestCommit)
}
/**
@ -237,12 +232,7 @@ export async function getCommitRangeDiff(
)
}
return buildDiff(
Buffer.from(result.combinedOutput),
repository,
file,
latestCommit
)
return buildDiff(Buffer.from(result.stdout), repository, file, latestCommit)
}
/**
@ -285,7 +275,7 @@ export async function getBranchMergeBaseChangedFiles(
)
return parseRawLogWithNumstat(
result.combinedOutput,
result.stdout,
`${latestComparisonBranchCommitRef}`,
mergeBaseCommit
)