mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
patman: Split alias entries on arbitrary whitespace
Previously the first three words in a git-mailrc alias entry could only be separated by spaces. git-send-email and Mutt both allow arbitrary whitespace here. Signed-off-by: Adam Sampson <ats@offog.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
38d1ab4a85
commit
b8a48fbca3
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ def _ReadAliasFile(fname):
|
|||
line = line.strip()
|
||||
if not line or line.startswith('#'):
|
||||
continue
|
||||
words = line.split(' ', 2)
|
||||
words = line.split(None, 2)
|
||||
if len(words) < 3 or words[0] != 'alias':
|
||||
if not bad_line:
|
||||
bad_line = "%s:%d:Invalid line '%s'" % (fname, linenum,
|
||||
|
|
Loading…
Add table
Reference in a new issue