From 21f0e8506119dc18c0b2396b5854d850cba7b00d Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Thu, 2 Dec 2021 17:36:30 +0000 Subject: test-ref-store: don't add newline to reflog message By convention, reflog messages always end in '\n', so before we would print blank lines between entries. Signed-off-by: Han-Wen Nienhuys Signed-off-by: Junio C Hamano --- t/helper/test-ref-store.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 't/helper/test-ref-store.c') diff --git a/t/helper/test-ref-store.c b/t/helper/test-ref-store.c index 3986665037..5ac33dfb59 100644 --- a/t/helper/test-ref-store.c +++ b/t/helper/test-ref-store.c @@ -152,9 +152,8 @@ static int each_reflog(struct object_id *old_oid, struct object_id *new_oid, const char *committer, timestamp_t timestamp, int tz, const char *msg, void *cb_data) { - printf("%s %s %s %"PRItime" %d %s\n", - oid_to_hex(old_oid), oid_to_hex(new_oid), - committer, timestamp, tz, msg); + printf("%s %s %s %" PRItime " %d %s", oid_to_hex(old_oid), + oid_to_hex(new_oid), committer, timestamp, tz, msg); return 0; } -- cgit 1.2.3-korg