Skip to content

Commit 2fe427e

Browse files
committed
Merge branch 'mg/notes-newline'
Avoid a stray empty newline in the template when creating new notes. * mg/notes-newline: notes: avoid empty line in template
2 parents 032e8da + 3c9b01f commit 2fe427e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/notes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static void prepare_note_data(const struct object_id *object, struct note_data *
181181
strbuf_addch(&buf, '\n');
182182
strbuf_add_commented_lines(&buf, "\n", strlen("\n"));
183183
strbuf_add_commented_lines(&buf, _(note_template), strlen(_(note_template)));
184-
strbuf_addch(&buf, '\n');
184+
strbuf_add_commented_lines(&buf, "\n", strlen("\n"));
185185
write_or_die(fd, buf.buf, buf.len);
186186

187187
write_commented_object(fd, object);

0 commit comments

Comments
 (0)