diff --git a/src/job.rs b/src/job.rs index 1a15233..2e91cf1 100644 --- a/src/job.rs +++ b/src/job.rs @@ -125,7 +125,13 @@ impl Job { let output = String::from_utf8(output.stdout)?; - Ok(Some(output.lines().map(String::from).collect())) + Ok(Some( + output + .lines() + .map(String::from) + .filter(|s| !s.is_empty()) + .collect(), + )) } fn get_remotes(&self, config: &GlobalSettings) -> anyhow::Result> {