]> git.sur5r.net Git - u-boot/commitdiff
patman: Don't allow spaces in tags
authorSimon Glass <sjg@chromium.org>
Tue, 26 Mar 2013 13:09:40 +0000 (13:09 +0000)
committerSimon Glass <sjg@chromium.org>
Thu, 4 Apr 2013 21:04:35 +0000 (14:04 -0700)
At present something like:

   Revert "arm: Add cache operations"

will try to use

   Revert "arm

as a tag. Clearly this is wrong, so fix it.

If the revert is intended to be tagged, then the tag can come before
the revert, perhaps. Alternatively the 'Cc' tag can be used in the commit
messages.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Doug Anderson <dianders@chromium.org>
tools/patman/commit.py

index 7144e5414a45536dac1eef8b008195050a34ca56..cbfbc46687d49eccb032bf835b043cb33e717953 100644 (file)
@@ -22,7 +22,7 @@
 import re
 
 # Separates a tag: at the beginning of the subject from the rest of it
-re_subject_tag = re.compile('([^:]*):\s*(.*)')
+re_subject_tag = re.compile('([^:\s]*):\s*(.*)')
 
 class Commit:
     """Holds information about a single commit/patch in the series.