summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/git.c b/git.c
index 4a5e871..4a76cc5 100644
--- a/git.c
+++ b/git.c
@@ -182,11 +182,10 @@ int create_info_file(pull_request *pr, const char *pr_root) {
int get_comment_len(comment *comment) {
struct tm tm;
- int len = format_len("title: %s\n", comment->title);
+ int len = format_len("id: %i\n", comment->id);
localtime_r(&comment->date, &tm);
- len = format_len("id: %i\n", comment->id);
len += format_len("author: %s\n", comment->author);
len += format_len("date: ") + strftime(NULL, -1, "%a %b %e %H:%M:%S %Y %z\n", &tm);