This commit is contained in:
Jacob 2025-08-27 00:41:03 +08:00 committed by GitHub
commit 9d18052c43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1814,6 +1814,7 @@ impl GitBinary {
output.status.success(), output.status.success(),
GitBinaryCommandError { GitBinaryCommandError {
stdout: String::from_utf8_lossy(&output.stdout).to_string(), stdout: String::from_utf8_lossy(&output.stdout).to_string(),
stderr: String::from_utf8_lossy(&output.stderr).to_string(),
status: output.status, status: output.status,
} }
); );
@ -1836,9 +1837,10 @@ impl GitBinary {
} }
#[derive(Error, Debug)] #[derive(Error, Debug)]
#[error("Git command failed: {stdout}")] #[error("Git command failed: {stdout} {stderr}")]
struct GitBinaryCommandError { struct GitBinaryCommandError {
stdout: String, stdout: String,
stderr: String,
status: ExitStatus, status: ExitStatus,
} }