[oe-commits] Paul Eggleton : lib/oe/patch: use --keep-cr with git am
git at git.openembedded.org
git at git.openembedded.org
Fri Dec 19 18:09:12 UTC 2014
Module: openembedded-core.git
Branch: master-next
Commit: fdaad9fa1f6ca41f42a24bb5b23aa1be25fdf1ac
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=fdaad9fa1f6ca41f42a24bb5b23aa1be25fdf1ac
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