Skip to content

Commit

Permalink
Save diff using Git instead of redirecting the stdout
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 7a4f1661c0b40f1b95b3d6a1c8e5df127d93d74c
  • Loading branch information
MaXal authored and intellij-monorepo-bot committed Oct 19, 2023
1 parent e223a83 commit 7a57c3d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,7 @@ object Git {
ProcessExecutor(
"git-build-diff",
workDir = dir, timeout = 1.minutes,
args = listOf("git", "diff", file.absolutePath),
stdoutRedirect = ExecOutputRedirect.ToFile(outputFile.toFile()),
stderrRedirect = ExecOutputRedirect.ToFile(outputFile.toFile()),
args = listOf("git", "diff","--output=${outputFile.toFile().absolutePath}", file.absolutePath),
).start()
}

Expand Down

0 comments on commit 7a57c3d

Please sign in to comment.