git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-archimport does not cope with empty summaries

From
Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
Date
Feb 27, 2007, 13:34 UTC
Message-ID
<45E43359.3030400@lu.unisi.ch>

I got this while importing bonzini@gnu.org--2004b/lightning--stable--1.2 (archive available at http://www.inf.unisi.ch/phd/bonzini/webdav/bonzini@gnu.org--2004b via webdav).

The patch seems pretty obvious to me:
2007-02-27  Paolo Bonzini  <bonzini@gnu.org>
         * git-archimport (parselog): Cope with an empty summary.

--- /usr/bin/git-archimport 2007-01-09 21:15:39.000000000 +0100 +++ ./git-archimport 2007-02-27 14:28:33.000000000 +0100

@@ -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
Message 1 of 1 in “git-archimport does not cope with empty summaries”
  1. git-archimport does not cope with empty summariesPaolo Bonzini, Feb 27, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.