From b0cbb8bda20909b71ea19630e6861152cc36fad2 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Tue, 22 Mar 2016 08:17:01 +0100 Subject: [PATCH] patchutils.py: Reset the Signed-off-by header after parsing each patch. --- staging/patchutils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/staging/patchutils.py b/staging/patchutils.py index d584df1a..09b94aa0 100644 --- a/staging/patchutils.py +++ b/staging/patchutils.py @@ -323,6 +323,7 @@ def read_patch(filename, content=None): elif line.startswith("From: "): header['author'], header['email'] = _parse_author(line[6:]) + header.pop('signedoffby', None) assert fp.read() == line elif line.startswith("Subject: "): @@ -338,6 +339,7 @@ def read_patch(filename, content=None): subject = re.sub('^([^:]*: *)([a-z])', lambda x: "%s%s" % (x.group(1), x.group(2).upper()), subject, 1) header['subject'], header['revision'] = subject, revision + header.pop('signedoffby', None) elif line.startswith("Signed-off-by: "): if not header.has_key('signedoffby'):