summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-08-01 10:01:03 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-08-01 10:01:03 -0400
commit3d955d30dfff2c76c85af3318c8fa4f35ff7dff0 (patch)
treed1350a62b9c996edaead979b437428f0122f6561 /git.c
parent86b78519e7aa5b4a5c3d396de1181fd472099b87 (diff)
Fixed typo in `create_info_file()`.
> mfw copy paste error
Diffstat (limited to 'git.c')
-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);