From 5e1859014baf5a70331cf66018039ee1dc5cb834 Mon Sep 17 00:00:00 2001 From: Tor Arntsen Date: Thu, 25 Mar 2010 16:43:01 +0100 Subject: 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(+) (limited to 'tests') diff --git a/tests/testcurl.pl b/tests/testcurl.pl index 4d099095b..6d9d694ca 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"; } -- cgit v1.2.3