commit fc457d247e3308a380ad2a41fd5a81c048625751 from: Stefan Sperling via: Thomas Adam date: Sat Apr 16 08:06:59 2022 UTC revert 03c03172 "drop a commit right away if it matches an excluded commit" This change resulted in a full history walk even when no objects will be added to the pack file. Fix this regression by reverting the change. commit - e9371be612bea2c580aec05a65644f6585e31f42 commit + fc457d247e3308a380ad2a41fd5a81c048625751 blob - 0b569f983f714418bd0c72d32c121cc4fbdf8676 blob + 2c40dd27410656d72dc97861165aa3e079c53685 --- lib/pack_create.c +++ lib/pack_create.c @@ -1356,20 +1356,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; }