X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-archimport.perl;h=9a7a90640fa02eef50c522d4276616bae006e6fe;hb=a5d86f7406ecda78b44faf9ab50b7c6e419dba9d;hp=b21077206a93139fd8652d5174817e18c89ba22e;hpb=04d70bebe72c264a1c4d26cbe306672e3e4098e3;p=git.git diff --git a/git-archimport.perl b/git-archimport.perl index b21077206..9a7a90640 100755 --- a/git-archimport.perl +++ b/git-archimport.perl @@ -595,7 +595,11 @@ foreach my $ps (@psets) { my $pid = open2(*READER, *WRITER,'git-commit-tree',$tree,@par) or die $!; print WRITER $ps->{summary},"\n\n"; - print WRITER $ps->{message},"\n"; + + # only print message if it's not empty, to avoid a spurious blank line; + # also append an extra newline, so there's a blank line before the + # following "git-archimport-id:" line. + print WRITER $ps->{message},"\n\n" if ($ps->{message} ne ""); # make it easy to backtrack and figure out which Arch revision this was: print WRITER 'git-archimport-id: ',$ps->{id},"\n";