Commit Diff


commit - 14dbbf48885998b6db226d20b27b77b094ceea23
commit + fbafdecfb2616668a85d20ef641764749a229f7a
blob - 5ad9119523e5995b68797f05b79ea98c1f8efd3f
blob + b52856ef9a6f270f64d7a55d2f968ff3d9040061
--- lib/pack_create.c
+++ lib/pack_create.c
@@ -1357,20 +1357,9 @@ findtwixt(struct got_object_id ***res, int *nres, int 
 
 	for (i = 0; i < nhead; i++) {
 		struct got_object_id *id = head[i];
-		int j, color = COLOR_KEEP;
-
 		if (id == NULL)
 			continue;
-
-		for (j = 0; j < ntail; j++) {
-			if (tail[j] != NULL &&
-			    got_object_id_cmp(id, tail[j]) == 0) {
-				color = COLOR_DROP;
-				break;
-			}
-		}
-
-		err = queue_commit_or_tag_id(id, color, &ids, repo);
+		err = queue_commit_or_tag_id(id, COLOR_KEEP, &ids, repo);
 		if (err)
 			goto done;
 	}