Git failure should not break the application

This commit is contained in:
Roey Darwish Dror
2018-06-09 22:55:31 +03:00
parent df305ec591
commit 950deaac9e

View File

@@ -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);
}
}