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:
parent
33e7bb04b3
commit
29ba85c53e
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue