mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
patman: Don't barf if the word 'commit' starts a line
Patman's regular expression for detecting the start of a commit in a git log was a little simplistic and could be confused if the git log itself had the word "commit" as the start of a line (as this commit does). Make patman a little more robust. Signed-off-by: Doug Anderson <dianders@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a1318f7cdc
commit
68618281e5
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ re_series = re.compile('^Series-(\w*): *(.*)')
|
|||
re_tag = re.compile('^(Tested-by|Acked-by|Reviewed-by|Cc): (.*)')
|
||||
|
||||
# The start of a new commit in the git log
|
||||
re_commit = re.compile('^commit (.*)')
|
||||
re_commit = re.compile('^commit ([0-9a-f]*)$')
|
||||
|
||||
# We detect these since checkpatch doesn't always do it
|
||||
re_space_before_tab = re.compile('^[+].* \t')
|
||||
|
|
Loading…
Add table
Reference in a new issue