Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git: Do not log error if repository has no commits (#11163)
Thorsten Ball5ef75919f09e
diff --git a/crates/git/src/commit.rs b/crates/git/src/commit.rsindex 5a3aaccae69..f0bc5d84014 100644--- a/crates/git/src/commit.rs+++ b/crates/git/src/commit.rs@@ -8,6 +8,10 @@ use std::process::Command;use std::os::windows::process::CommandExt;pub fn get_messages(working_directory: &Path, shas: &[Oid]) -> Result<HashMap<Oid, String>> {+ if shas.is_empty() {+ return Ok(HashMap::default());+ }+const MARKER: &'static str = "<MARKER>";let mut command = Command::new("git");