diff --git a/script/lib/git.py b/script/lib/git.py index 68789d8add0c..55a3a560bebb 100644 --- a/script/lib/git.py +++ b/script/lib/git.py @@ -52,7 +52,8 @@ def get_repo_root(path): def am(repo, patch_data, threeway=False, directory=None, exclude=None, committer_name=None, committer_email=None, keep_cr=True): - args = [] + # --keep-non-patch prevents stripping leading bracketed strings on the subject line + args = ['--keep-non-patch'] if threeway: args += ['--3way'] if directory is not None: