mirror of
https://git.yoctoproject.org/poky
synced 2026-04-02 17:02:21 +02:00
lib/oe/patch.py: Ignore scissors line on applying patch
The "devtool modify" could remove message body before scissors line, so patches re-generated from git tree were incorrectly modified. Adding --no-scissors to "git am" invocation to prevent this behaviour. [YOCTO #12674] (From OE-Core rev: 13ea33fbd197b9ee3cf913d9995617115f22798f) Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b1e70354dd
commit
a3cba800ef
@@ -516,7 +516,7 @@ class GitApplyTree(PatchTree):
|
||||
try:
|
||||
shellcmd = [patchfilevar, "git", "--work-tree=%s" % reporoot]
|
||||
self.gitCommandUserOptions(shellcmd, self.commituser, self.commitemail)
|
||||
shellcmd += ["am", "-3", "--keep-cr", "-p%s" % patch['strippath']]
|
||||
shellcmd += ["am", "-3", "--keep-cr", "--no-scissors", "-p%s" % patch['strippath']]
|
||||
return _applypatchhelper(shellcmd, patch, force, reverse, run)
|
||||
except CmdError:
|
||||
# Need to abort the git am, or we'll still be within it at the end
|
||||
|
||||
Reference in New Issue
Block a user