diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-12-16 15:10:47 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-12-16 15:10:47 -0500 |
commit | 41cfb037967b23f873979dac3de7d018397ccc7c (patch) | |
tree | d2a7509c9910c5970b0d54fc35fb5967def72aa8 | |
parent | 0c107968964fdff89ed6a7afb651b0fa5b28efe9 (diff) | |
download | korg-helpers-41cfb037967b23f873979dac3de7d018397ccc7c.tar.gz |
Revert "patchwork-bot: Ignore empty context lines"
This reverts commit 8998144862b16cfa7a2ec07757d43ca269d59373.
Unfotunately, this change broke matching for other patches, so roll it
back to the way it was.
Reported-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-x | git-patchwork-bot.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/git-patchwork-bot.py b/git-patchwork-bot.py index 6353047..ebf4bd3 100755 --- a/git-patchwork-bot.py +++ b/git-patchwork-bot.py @@ -511,9 +511,7 @@ def get_patchwork_hash(diff: str) -> str: line_nos = list(map(fn, hunk_match.groups())) line = '@@ -%d +%d @@' % tuple(line_nos) elif line[0] in prefixes: - # if we have a +, - or context line, leave as-is, except blank lines - if line == ' ': - continue + # if we have a +, - or context line, leave as-is pass else: # other lines are ignored |