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.

Fix git commit popup message bracket (#16279)

dovakin0007f633b125b9ba
diff --git a/crates/git/src/commit.rs b/crates/git/src/commit.rs
index f0bc5d84014..50372dec9ce 100644
--- a/crates/git/src/commit.rs
+++ b/crates/git/src/commit.rs
@@ -43,7 +43,7 @@ pub fn get_messages(working_directory: &Path, shas: &[Oid]) -> Result<HashMap<Oi
String::from_utf8_lossy(&output.stdout)
.trim()
.split_terminator(MARKER)
- .map(|str| String::from(str.trim())),
+ .map(|str| str.trim().replace("<", "&lt;").replace(">", "&gt;")),
)
.collect::<HashMap<Oid, String>>())
}