patman: Check commit_match before stripping leading whitespace
authorScott Wood <scottwood@freescale.com>
Thu, 25 Sep 2014 19:30:46 +0000 (14:30 -0500)
committerSimon Glass <sjg@chromium.org>
Fri, 30 Jan 2015 22:55:26 +0000 (15:55 -0700)
commit4b89b8135f4792c456fbffbf7eea8456c3472455
tree195d4d462f70d21838feddf7e857f767d6a9bf79
parent2181830f11c2bbfea31e5f3f957577a619fc3776
patman: Check commit_match before stripping leading whitespace

True commit lines start at column zero.  Anything that is indented
is part of the commit message instead.  I noticed this by trying to
run buildman with commit e3a4facdfc07179ebe017a07b8de6224a935a9f3
as master, which contained a reference to a Linux commit inside
the commit message.  ProcessLine saw that as a genuite commit
line, and thus buildman tried to build it, and died with an
exception because that SHA is not present in the U-Boot tree.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Acked-by: Simon Glass <sjg@chromium.org>
tools/patman/patchstream.py