From 950deaac9ee11fca6aeb319d7dfc9ca29892747f Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Sat, 9 Jun 2018 22:55:31 +0300 Subject: [PATCH] Git failure should not break the application --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index cc0c81c8..2816b77f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -95,7 +95,7 @@ fn main() -> Result<(), Error> { for repo in git_repos { terminal.print_separator(format!("Pulling {}", repo)); - if let Some(success) = git.pull(&repo)? { + if let Some(success) = git.pull(&repo).ok().and_then(|i| i) { success.report(format!("git: {}", repo), &mut reports); } }