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.
This commit is contained in:
parent
e1c38791b7
commit
5e1859014b
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user