mirror of
https://github.com/desktop/desktop
synced 2024-10-30 06:03:10 +00:00
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:
parent
227b1e3701
commit
afe838dff1
1 changed files with 3 additions and 13 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue