aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-09-23 10:32:59 -0700
committerJunio C Hamano <gitster@pobox.com>2024-09-23 10:33:00 -0700
commit1c8d664dfd099375e015b28b633b6caa99f00883 (patch)
tree1cacbfca1b2b9fedf02d2f445f0cb5edbfa5d84e /builtin
parentc7577aedf5791b18b5c02f0b61234c28b713c00e (diff)
parentc02414a99796487a2124e4dbb17c3a88c8606404 (diff)
downloadgit-1c8d664dfd099375e015b28b633b6caa99f00883.tar.xz
Merge branch 'bl/trailers-and-incomplete-last-line-fix' into maint-2.46
The interpret-trailers command failed to recognise the end of the message when the commit log ends in an incomplete line. * bl/trailers-and-incomplete-last-line-fix: interpret-trailers: handle message without trailing newline
Diffstat (limited to 'builtin')
-rw-r--r--builtin/interpret-trailers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/interpret-trailers.c b/builtin/interpret-trailers.c
index 1d969494cf..e6f22459f1 100644
--- a/builtin/interpret-trailers.c
+++ b/builtin/interpret-trailers.c
@@ -132,6 +132,7 @@ static void read_input_file(struct strbuf *sb, const char *file)
if (strbuf_read(sb, fileno(stdin), 0) < 0)
die_errno(_("could not read from stdin"));
}
+ strbuf_complete_line(sb);
}
static void interpret_trailers(const struct process_trailer_options *opts,