Commit a342f20d993be3c2a46b1440970ca7b52ec776f3

Stefan Sperling 2020-01-04T18:47:57

remove a redundant call to detect_changed_path() in commit graph

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/lib/commit_graph.c b/lib/commit_graph.c
index fe7db47..81fcd46 100644
--- a/lib/commit_graph.c
+++ b/lib/commit_graph.c
@@ -536,13 +536,6 @@ got_commit_graph_iter_start(struct got_commit_graph *graph,
 	if (err)
 		goto done;
 
-	err = detect_changed_path(&changed, commit, &start_node->id,
-	    graph->path, repo);
-	if (err) {
-		got_object_commit_close(commit);
-		return err;
-	}
-
 	if (!changed) {
 		/* Locate first commit which changed graph->path. */
 		struct got_object_id *changed_id = NULL;