X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FImport.pm;h=f320c58c6b575023ec94dfcd12e8cbd6910f7af4;hb=aca47e05a6026c12c768753c87e6ff769ef6bee4;hp=250a2db31e979054c94df5a0e1dd6ca2d8a5f883;hpb=ae80a3fdb53d70142624f2691ed8ed84eddda66b;p=public-inbox.git diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index 250a2db3..f320c58c 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -405,6 +405,8 @@ sub add { print $w "reset $ref\n" or wfail; } + # Mime decoding can create nulls replace them with spaces to protect git + $subject =~ tr/\0/ /; utf8::encode($subject); print $w "commit $ref\nmark :$commit\n", "author $name <$email> $author_time_raw\n",