diff --git a/crates/git/src/commit.rs b/crates/git/src/commit.rs index 5a3aaccae6..f0bc5d8401 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> { + if shas.is_empty() { + return Ok(HashMap::default()); + } + const MARKER: &'static str = ""; let mut command = Command::new("git");