From 5e1859014baf5a70331cf66018039ee1dc5cb834 Mon Sep 17 00:00:00 2001 From: Tor Arntsen Date: Thu, 25 Mar 2010 16:43:01 +0100 Subject: [PATCH] Avoid double newline for the 'last commits' log in testcurl.pl The backtick command which extracts 'git log' lines come with a newline, so chomp the newline before calling logit(), as the logit function adds a newline by itself. --- tests/testcurl.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/testcurl.pl b/tests/testcurl.pl index 4d099095b2..6d9d694ca8 100755 --- a/tests/testcurl.pl +++ b/tests/testcurl.pl @@ -407,6 +407,7 @@ if ($git) { my @commits=`git log --pretty=oneline --abbrev-commit -5`; logit "The most recent git commits:"; for my $l (@commits) { + chomp ($l); logit " $l"; } -- GitLab