From: Tor Arntsen Date: Thu, 25 Mar 2010 15:43:01 +0000 (+0100) Subject: Avoid double newline for the 'last commits' log in testcurl.pl X-Git-Tag: curl-7_20_1~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5e1859014baf5a70331cf66018039ee1dc5cb834;p=thirdparty%2Fcurl.git 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. --- 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"; }