commit - 5a9119406886cd082623ca5ff354b7dcbed9c942
commit + f75a37beb3c26f885d25c774915d627acda1ff4a
blob - 54bcda5fe846f5a478453a0753102a42a62f33aa
blob + 0f2ac28da912405cc8c40cb276bc992c190828aa
--- gotweb/gotweb.c
+++ gotweb/gotweb.c
if (gw_trans->prev_id == NULL && gw_trans->commit_id != NULL &&
(gw_trans->action == GW_BRIEFS || gw_trans->action == GW_COMMITS ||
gw_trans->action == GW_SUMMARY)) {
+ commit_found = 0;
TAILQ_FOREACH_REVERSE(t_header, &gw_trans->gw_headers,
headers, entry) {
if (commit_found == 0 &&
strcmp(gw_trans->commit_id,
t_header->commit_id) != 0)
continue;
+ else
+ commit_found = 1;
if (gw_trans->commit_id != NULL &&
strcmp(gw_trans->commit_id,
t_header->commit_id) != 0 &&