Fix application of patch files created with `git diff --no-prefix --relative .`

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1659 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2014-04-16 16:32:39 +00:00
parent 33e7bb04b3
commit 29ba85c53e
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ class PatchInfo(object):
filenames = False
header = True
else:
self.source.append(match.group(1))
self.source.append(match.group(1).strip())
elif not line.startswith("+++ "):
if nextfileno in self.source:
warning("skipping invalid patch with no target for %s" % self.source[nextfileno])