Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 950deaa

Browse files
committed
Git failure should not break the application
1 parent df305ec commit 950deaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fn main() -> Result<(), Error> {
9595

9696
for repo in git_repos {
9797
terminal.print_separator(format!("Pulling {}", repo));
98-
if let Some(success) = git.pull(&repo)? {
98+
if let Some(success) = git.pull(&repo).ok().and_then(|i| i) {
9999
success.report(format!("git: {}", repo), &mut reports);
100100
}
101101
}

0 commit comments

Comments
 (0)