]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Avoid double newline for the 'last commits' log in testcurl.pl
authorTor Arntsen <tor@spacetec.no>
Thu, 25 Mar 2010 15:43:01 +0000 (16:43 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 25 Mar 2010 17:28:35 +0000 (18:28 +0100)
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

index 4d099095b293ca033851b5facb78a178bed2d47e..6d9d694ca889e4572b67310b9154f606784fd9e0 100755 (executable)
@@ -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";
   }