devtool: Disable gpg signing when setting up source tree repos
PATCH 1/1 devtool: Disable gpg signing when setting up source tree repos
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 <[email protected]>
Signed-off-by Richard Purdie <[email protected]>
--- scripts/lib/devtool/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/devtool/__init__.py +1 -1
@@ -200,7 +200,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')