]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
lib/oe/patch: Disable gpg signing when applying patches using git
authorDiego de los Santos <diego.delossantos@belden.com>
Wed, 19 Nov 2025 14:03:15 +0000 (14:03 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Nov 2025 11:22:12 +0000 (11:22 +0000)
This fixes patching failing when git is configured to automatically sign
commits.

Signed-off-by: Diego de los Santos <diego.delossantos@belden.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/patch.py

index edd77196ee799224c49e76e2a9638f981f4c7b92..77b166cfa3c4b6943bf71cd05a68007afc678bbd 100644 (file)
@@ -453,7 +453,7 @@ class GitApplyTree(PatchTree):
         # Prepare git command
         cmd = ["git"]
         GitApplyTree.gitCommandUserOptions(cmd, commituser, commitemail)
-        cmd += ["commit", "-F", tmpfile, "--no-verify"]
+        cmd += ["commit", "-F", tmpfile, "--no-verify", "--no-gpg-sign"]
         # git doesn't like plain email addresses as authors
         if author and '<' in author:
             cmd.append('--author="%s"' % author)
@@ -507,7 +507,7 @@ class GitApplyTree(PatchTree):
             runcmd(['git', 'add'] + files, dir)
         cmd = ["git"]
         GitApplyTree.gitCommandUserOptions(cmd, d=d)
-        cmd += ["commit", "-m", subject, "--no-verify"]
+        cmd += ["commit", "-m", subject, "--no-verify", "--no-gpg-sign"]
         runcmd(cmd, dir)
         GitApplyTree.addNote(dir, "HEAD", GitApplyTree.ignore_commit, d.getVar('PATCH_GIT_USER_NAME'), d.getVar('PATCH_GIT_USER_EMAIL'))