[oe-commits] Paul Eggleton : lib/oe/patch: use --keep-cr with git am

git at git.openembedded.org git at git.openembedded.org
Sat Dec 20 11:24:52 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 1f47b737309dfcf267c677e9f7abb740c1e6c192
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=1f47b737309dfcf267c677e9f7abb740c1e6c192

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Fri Dec 19 11:41:47 2014 +0000

lib/oe/patch: use --keep-cr with git am

Preserving carriage returns is important where the patch contains them.

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/lib/oe/patch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the Openembedded-commits mailing list