lib/oe/patch: use --keep-cr with git am
Preserving carriage returns is important where the patch contains them. (From OE-Core rev: 1cfcae0cd0bc776f5bb91a75bb8ffdad3d7bf200) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
400933b050
commit
37db9e62f0
|
@ -287,7 +287,7 @@ class GitApplyTree(PatchTree):
|
|||
return runcmd(["sh", "-c", " ".join(shellcmd)], self.dir)
|
||||
|
||||
try:
|
||||
shellcmd = ["git", "--work-tree=.", "am", "-3", "-p%s" % patch['strippath']]
|
||||
shellcmd = ["git", "--work-tree=.", "am", "-3", "--keep-cr", "-p%s" % patch['strippath']]
|
||||
return _applypatchhelper(shellcmd, patch, force, reverse, run)
|
||||
except CmdError:
|
||||
# Fall back to git apply
|
||||
|
|
Loading…
Reference in New Issue