diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2018-03-15 22:50:10 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-20 09:30:18 +0000 |
commit | ad76fa92c3a5be38962aff09df070ffd9756f777 (patch) | |
tree | 47de1ca9423d09026f9ef1ac4a173b1a35a4c417 | |
parent | b2770ec717d2b3cfc475c0cf7fa372fdb2f691a9 (diff) | |
download | openembedded-core-ad76fa92c3a5be38962aff09df070ffd9756f777.tar.gz openembedded-core-ad76fa92c3a5be38962aff09df070ffd9756f777.tar.bz2 openembedded-core-ad76fa92c3a5be38962aff09df070ffd9756f777.zip |
patch.py: Use git format-patch with --no-signature --no-numbered params
* --no-signature saves unnecessary .patch modifications when executed on
host with different git version
* --no-numbered saves unnecessary .patch modifications when number of the
applied patches is changed (the number is still in the filename so the
order how they should be applied is still preserved)
* both options exist for very long time, I've tested them with git 1.9.1
from Ubuntu 14.04 and I'm quite sure they were available even in much
older releases, so there shouldn't be any issue on relatively new sanity
tested distros
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-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 bfa7d21879..af7aa52351 100644 --- a/meta/lib/oe/patch.py +++ b/meta/lib/oe/patch.py @@ -448,7 +448,7 @@ class GitApplyTree(PatchTree): import re tempdir = tempfile.mkdtemp(prefix='oepatch') try: - shellcmd = ["git", "format-patch", startcommit, "-o", tempdir] + shellcmd = ["git", "format-patch", "--no-signature", "--no-numbered", startcommit, "-o", tempdir] if paths: shellcmd.append('--') shellcmd.extend(paths) |