author | Lars Hjemli <hjemli@gmail.com> | 2008-12-30 11:29:50 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-12-30 11:29:50 (UTC) |
commit | 50fbd46c917a06f60235da59adb860697ea94eb0 (patch) (side-by-side diff) | |
tree | bad905b9ac5f8aa63350ef5195eac26fd7fc2ba8 /ui-patch.c | |
parent | 06de14d0fdb141feab10383ba18c0e81d56f483b (diff) | |
parent | 03afc5fe1fe70b6e44b60708c89708060e6d5a90 (diff) | |
download | cgit-50fbd46c917a06f60235da59adb860697ea94eb0.zip cgit-50fbd46c917a06f60235da59adb860697ea94eb0.tar.gz cgit-50fbd46c917a06f60235da59adb860697ea94eb0.tar.bz2 |
Merge branch 'stable'
-rw-r--r-- | ui-patch.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -92,27 +92,27 @@ void cgit_print_patch(char *hex) info = cgit_parse_commit(commit); if (commit->parents && commit->parents->item) hashcpy(old_sha1, commit->parents->item->object.sha1); else hashclr(old_sha1); patchname = fmt("%s.patch", sha1_to_hex(sha1)); ctx.page.mimetype = "text/plain"; ctx.page.filename = patchname; cgit_print_http_headers(&ctx); htmlf("From %s Mon Sep 17 00:00:00 2001\n", sha1_to_hex(sha1)); - htmlf("From: %s%s\n", info->author, info->author_email); + htmlf("From: %s %s\n", info->author, info->author_email); html("Date: "); - cgit_print_date(info->author_date, "%a, %d %b %Y %H:%M:%S %z%n", ctx.cfg.local_time); + cgit_print_date(info->author_date, "%a, %d %b %Y %H:%M:%S %z%n", ctx.cfg.local_time); htmlf("Subject: %s\n\n", info->subject); if (info->msg && *info->msg) { htmlf("%s", info->msg); if (info->msg[strlen(info->msg) - 1] != '\n') html("\n"); } html("---\n"); cgit_diff_tree(old_sha1, sha1, filepair_cb, NULL); html("--\n"); htmlf("cgit %s\n", CGIT_VERSION); cgit_free_commitinfo(info); } |