Commit Diff


commit - f8836425010d0756365e9d64f63e3dfb517b1c6b
commit + 6f97aa8325d21f12e6cd5d21353cc11899b9c75e
blob - b7547794d998714acf55500591e26289b431c87e
blob + 93158be8199310738edca95f736970edafb1c23f
--- lib/worktree.c
+++ lib/worktree.c
@@ -3888,7 +3888,6 @@ struct find_missing_children_args {
 	struct got_pathlist_head *children;
 	got_cancel_cb cancel_cb;
 	void *cancel_arg;
-
 };
 
 static const struct got_error *
@@ -4016,6 +4015,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 {