Commit Diff


commit - 13a851c144b0ea32b3c43e123fc04fd90ee02e39
commit + ec1904dc6e558c439fa9d82b2871bcff5ea9fe81
blob - da0a70c37cce14cc530980412230304e9f1aefdc
blob + 1cc95cccaf11067f20394c9e36214893c70a7d29
--- lib/commit_graph.c
+++ lib/commit_graph.c
@@ -450,7 +450,9 @@ fetch_commits_from_open_branches(int *nfetched,
 			 * branch. Keep going on other branches.
 			 */
 			err = close_branch(graph, commit_id);
-			break;
+			if (err)
+				break;
+			continue;
 		}
 		if (changed) {
 			add_node_to_iter_list(graph, new_node);