X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/bbcdc290c6c0b8121e57dbca4bd66c9e5e729959..c83db796a1cf6893de275e78b98cef10eccc1200:/ui-summary.c?ds=sidebyside diff --git a/ui-summary.c b/ui-summary.c index 5c1fc33..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,12 +162,12 @@ 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); html_link_close(); - html(""); + html(""); return 0; } @@ -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();