X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/62dcc05c27fa2f230a7048211337f86ba20966a5..c83db796a1cf6893de275e78b98cef10eccc1200:/ui-summary.c diff --git a/ui-summary.c b/ui-summary.c index 18608b8..4bda4c2 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -19,6 +19,9 @@ static int cgit_print_branch_cb(const char *refname, const unsigned char *sha1, strncpy(buf, refname, sizeof(buf)); commit = lookup_commit(sha1); + // object is not really parsed at this point, because of some fallout + // from previous calls to git functions in cgit_print_log() + commit->object.parsed = 0; if (commit && !parse_commit(commit)){ info = cgit_parse_commit(commit); html(""); @@ -159,7 +162,7 @@ static int cgit_print_archive_cb(const char *refname, const unsigned char *sha1, } html(""); url = cgit_pageurl(cgit_query_repo, "blob", - fmt("id=%s&path=%s", sha1_to_hex(fileid), + fmt("id=%s&path=%s", sha1_to_hex(fileid), buf)); html_link_open(url, NULL, NULL); html_txt(buf); @@ -203,8 +206,11 @@ void cgit_print_summary() if (cgit_repo->readme) html_include(cgit_repo->readme); html(""); - + if (cgit_summary_log > 0) + cgit_print_log(cgit_query_head, 0, cgit_summary_log, NULL, NULL, 0); html(""); + if (cgit_summary_log > 0) + html(""); cgit_print_branches(); html(""); cgit_print_tags();