• Bin Meng's avatar
    tools: patman: Handle missing 'END' in non-last commit of a series · 94fbd3e3
    Bin Meng authored
    The following python error:
    
    Traceback (most recent call last):
      File "./tools/patman/patman", line 144, in <module>
        series = patchstream.FixPatches(series, args)
      File "./tools/patman/patchstream.py", line 477, in FixPatches
        commit = series.commits[count]
    IndexError: list index out of range
    
    is seen when:
    
    - 'END' is missing in those tags
    - those tags are put in the last part in a commit message
    - the commit is not the last commit of the series
    
    Add testing logic to see if a new commit starts.
    Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
    Acked-by: default avatarSimon Glass <sjg@chromium.org>
    94fbd3e3
Name
Last commit
Last update
..
.gitignore Loading commit data...
README Loading commit data...
__init__.py Loading commit data...
checkpatch.py Loading commit data...
command.py Loading commit data...
commit.py Loading commit data...
cros_subprocess.py Loading commit data...
get_maintainer.py Loading commit data...
gitutil.py Loading commit data...
patchstream.py Loading commit data...
patman Loading commit data...
patman.py Loading commit data...
project.py Loading commit data...
series.py Loading commit data...
settings.py Loading commit data...
setup.py Loading commit data...
terminal.py Loading commit data...
test.py Loading commit data...