]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
devtool: Disable gpg signing when setting up source tree repos
authorMoritz Haase <Moritz.Haase@bmw.de>
Thu, 7 May 2026 05:38:48 +0000 (07:38 +0200)
committerYoann Congal <yoann.congal@smile.fr>
Thu, 7 May 2026 22:51:48 +0000 (00:51 +0200)
This stops 'devtool modify foo' from failing with an error message like

    ERROR: Execution of 'git -c user.name=\"OpenEmbedded\" -c
    user.email=\"oe.patch@oe\" commit -q -m "Initial commit from upstream at
    version 1.90.0"' failed with exit code 128:
    error: cannot run ssh-keygen: No such file or directory
    error:
    fatal: failed to write commit object

when GPG signing is enabled in the git configuration.

(cherry picked from commit b5c84b07b87eafb4f68f7662b6cf26d8b73e3247)

Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
scripts/lib/devtool/__init__.py

index 6133c1c5b4de413fecbb49e55977cf1286f9f7ea..c18887c6cedd77f500a85c4aba52b193e24d5ae7 100644 (file)
@@ -202,7 +202,7 @@ def setup_git_repo(repodir, version, devbranch, basetag='devtool-base', d=None):
         bb.process.run('git add -f -A .', cwd=repodir)
         commit_cmd = ['git']
         oe.patch.GitApplyTree.gitCommandUserOptions(commit_cmd, d=d)
-        commit_cmd += ['commit', '-q']
+        commit_cmd += ['commit', '-q', '--no-gpg-sign']
         stdout, _ = bb.process.run('git status --porcelain', cwd=repodir)
         if not stdout:
             commit_cmd.append('--allow-empty')