diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-12-19 11:41:47 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-21 12:37:56 +0000 |
commit | 37db9e62f06087a8ad46ab5babce3037d18edbfb (patch) | |
tree | f8830b7c19f36df96f80362e18d033b6f95b5b20 /meta | |
parent | 400933b0501b651f3c67d93570eb929da5ed02b4 (diff) | |
download | ast2050-yocto-poky-37db9e62f06087a8ad46ab5babce3037d18edbfb.zip ast2050-yocto-poky-37db9e62f06087a8ad46ab5babce3037d18edbfb.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/patch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py index 2d56ba4..2bf3065 100644 --- a/meta/lib/oe/patch.py +++ b/meta/lib/oe/patch.py @@ -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 |