git: Log some more information when opening a git repository and when git show fails (#51495)

Release Notes:

- N/A
This commit is contained in:
Cole Miller authored and GitHub committed 2026-03-13 14:53:14 +00:00
1 parent 7b21c3ac2e
commit 641d5151f2
3 files changed
+17 -13

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ async fn get_messages_impl(git: &GitBinary, shas: &[Oid]) -> Result<Vec<String>>
anyhow::ensure!(
output.status.success(),
"'git show' failed with error {:?}",
output.status
String::from_utf8_lossy(&output.stderr)
);
Ok(String::from_utf8_lossy(&output.stdout)
.trim()