X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/237ef7b06d461ddf27b21cd13bfcb50befa4a916..0df096f6e146187e55e2203ea1c017442cc2c8c6:/ui-summary.c diff --git a/ui-summary.c b/ui-summary.c index 5799773..b4bc6d8 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -15,28 +15,25 @@ static int cgit_print_branch_cb(const char *refname, const unsigned char *sha1, { struct commit *commit; struct commitinfo *info; - char buf[256], *url; + char buf[256]; + char *ref; + ref = xstrdup(refname); 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("
| Downloads | |||
|---|---|---|---|
| "); 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(" ");
+ cgit_print_archives();
html(" "); html_txt(cgit_repo->name); html(" - "); html_txt(cgit_repo->desc); html(""); - html(" | "); - cgit_print_archives(); - html(" | ||