Commit Diff


commit - 31cf15ecf83c7e0bf2e99599b19f43fe2435d75a
commit + 46108e23186237cccae84d88785fd31d692ef535
blob - 6c1b2ed0baef222d32e1103230d8e657c1755e93
blob + b08ea7c98c8952d224400390c47972f2e057ee4e
--- lib/worktree.c
+++ lib/worktree.c
@@ -3891,7 +3891,6 @@ struct find_missing_children_args {
 	struct got_pathlist_head *children;
 	got_cancel_cb cancel_cb;
 	void *cancel_arg;
-
 };
 
 static const struct got_error *
@@ -4019,6 +4018,8 @@ worktree_status(struct got_worktree *worktree, const c
 				    &ignores, no_ignores,
 				    status_cb, status_arg,
 				    cancel_cb, cancel_arg);
+				if (err)
+					goto done;
 			}
 		}
 	} else {