Skip to contentSkip to conversation

git-archimport does not cope with empty summaries

PATCH New Paolo Bonzini 1 participant 1 message Jun 15, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git-archimport does not cope with empty summaries

I got this while importing [email protected]/lightning--stable--1.2 (archive available at http://www.inf.unisi.ch/phd/bonzini/webdav/[email protected] via webdav).

The patch seems pretty obvious to me:

2007-02-27 Paolo Bonzini <[email protected]>

* git-archimport (parselog): Cope with an empty summary.

git-archimport 2007-02-27 14:28:33.000000000 +0100 renamed from usr/bin/git-archimport 2007-01-09 21:15:39.000000000 +0100 +5 -1
@@ -780,7 +780,11 @@
     }
 
     # post-processing:
-    $ps->{summary} = join("\n",@{$ps->{summary}})."\n";
+    if (defined $ps->{summary}) {
+        $ps->{summary} = join("\n",@{$ps->{summary}})."\n";
+    } else {
+        $ps->{summary} = "empty summary\n";
+    }
     $ps->{message} = join("\n",@$log);
 
     # skip Arch control files, unescape pika-escaped files