summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--b4/pr.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/b4/pr.py b/b4/pr.py
index e97dbce..015375a 100644
--- a/b4/pr.py
+++ b/b4/pr.py
@@ -222,6 +222,10 @@ def explode(gitdir, lmsg, savefile):
logger.critical(out)
sys.exit(ecode)
+ # Fix From lines to make sure this is a valid mboxo
+ out = re.sub(r'^From (?![a-f0-9]+ \w+ \w+ \d+ \d+:\d+:\d+ \d+$)', '>From ', out, 0, re.M)
+ print(out)
+
# Save patches into a temporary file
patchmbx = mkstemp()[1]
with open(patchmbx, 'w') as fh: