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.

Don't pass `-z` flag to git-cat-file (#31053)

Cole Miller1e51a7ac4423
diff --git a/crates/git/src/repository.rs b/crates/git/src/repository.rs
index 20b13e1f8ad..2cf2368e75a 100644
--- a/crates/git/src/repository.rs
+++ b/crates/git/src/repository.rs
@@ -752,7 +752,6 @@ impl GitRepository for RealGitRepository {
"--no-optional-locks",
"cat-file",
"--batch-check=%(objectname)",
- "-z",
])
.stdin(Stdio::piped())
.stdout(Stdio::piped())
@@ -765,7 +764,7 @@ impl GitRepository for RealGitRepository {
.ok_or_else(|| anyhow!("no stdin for git cat-file subprocess"))?;
let mut stdin = BufWriter::new(stdin);
for rev in &revs {
- write!(&mut stdin, "{rev}\0")?;
+ write!(&mut stdin, "{rev}\n")?;
}
drop(stdin);