Commit ec1904dc6e558c439fa9d82b2871bcff5ea9fe81

Stefan Sperling 2020-01-04T19:55:21

fix error in previous commit

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/lib/commit_graph.c b/lib/commit_graph.c
index da0a70c..1cc95cc 100644
--- a/lib/commit_graph.c
+++ b/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);