commit - b46b8f09728040b4d8ff7a93ea5236b90412f768
commit + 106bfc0e078584381c4fe0789d54d72972bec3bd
blob - 4e65a3f8939e6541fe568b471a16f36581536485
blob + 21cff52d4c0895389b584790bfbe4f39a23dbf99
--- libexec/got-read-pack/got-read-pack.c
+++ libexec/got-read-pack/got-read-pack.c
parents = got_object_commit_get_parent_ids(commit);
if (parents) {
struct got_object_qid *pid;
+
+ STAILQ_FOREACH(pid, parents, entry) {
+ if (got_packidx_get_object_idx(packidx,
+ &pid->id) == -1)
+ goto send;
+ }
+
color = (intptr_t)qid->data;
STAILQ_FOREACH(pid, parents, entry) {
err = queue_commit_id(ids, &pid->id, color);
if (err)
goto done;
}
-
+send:
err = got_privsep_send_painted_commits(ibuf, &painted, &npainted, 1, 1);
if (err)
goto done;