commit 3ca1653055ac692a4788d256c94d2aabc24552cb from: Stefan Sperling date: Mon Feb 04 17:48:07 2019 UTC append to tail of reflist, not to the head of the list commit - 35dc45103a1b6a18ec34e90aa51109ec85ffbf2d commit + 3ca1653055ac692a4788d256c94d2aabc24552cb blob - 617c9217d05fe05df3fb371060343a460f089436 blob + 5bf2f2a0e092c7e48d94de155fd252734cd6b21e --- lib/reference.c +++ lib/reference.c @@ -491,7 +491,7 @@ insert_ref(struct got_reflist_head *refs, struct got_r if (prev) SIMPLEQ_INSERT_AFTER(refs, prev, re, entry); else - SIMPLEQ_INSERT_HEAD(refs, re, entry); + SIMPLEQ_INSERT_TAIL(refs, re, entry); return NULL; }