From 3d955d30dfff2c76c85af3318c8fa4f35ff7dff0 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sun, 1 Aug 2021 10:01:03 -0400 Subject: Fixed typo in `create_info_file()`. > mfw copy paste error --- git.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'git.c') 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); -- cgit v1.2.3-13-gbd6f