Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Trim trailing newline from git clone error messages (#61674)

Xin Zhaoba4cb2a2cc93
diff --git a/crates/fs/src/fs.rs b/crates/fs/src/fs.rs
index 009ac99acd5..7fb443160b8 100644
--- a/crates/fs/src/fs.rs
+++ b/crates/fs/src/fs.rs
@@ -1253,7 +1253,7 @@ impl Fs for RealFs {
if !output.status.success() {
anyhow::bail!(
"git clone failed: {}",
- String::from_utf8_lossy(&output.stderr)
+ String::from_utf8_lossy(&output.stderr).trim_end()
);
}