mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
devtool: Do not create annotated tags if tag.gpgSign is set
If tag.gpgSign is configured in Git's configuration, then creating the devtool-base tag will fail (if Git's core.editor is not configured) or it will hang (when trying to open the editor). This is beacause tag.gpgSign causes git tag to create annotated tags. To avoid this, specify --no-sign as argument to git tag. (From OE-Core rev: f96e955b29aad6a9e0b20f8e9a4987ace3808c91) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
7c969b75fe
commit
9eb610fb74
@@ -234,7 +234,7 @@ def setup_git_repo(repodir, version, devbranch, basetag='devtool-base', d=None):
|
||||
f.write(line)
|
||||
|
||||
bb.process.run('git checkout -b %s' % devbranch, cwd=repodir)
|
||||
bb.process.run('git tag -f %s' % basetag, cwd=repodir)
|
||||
bb.process.run('git tag -f --no-sign %s' % basetag, cwd=repodir)
|
||||
|
||||
# if recipe unpacks another git repo inside S, we need to declare it as a regular git submodule now,
|
||||
# so we will be able to tag branches on it and extract patches when doing finish/update on the recipe
|
||||
@@ -256,7 +256,7 @@ def setup_git_repo(repodir, version, devbranch, basetag='devtool-base', d=None):
|
||||
oe.patch.GitApplyTree.commitIgnored("Add additional submodule from SRC_URI", dir=os.path.join(root, ".."), d=d)
|
||||
found = False
|
||||
if os.path.exists(os.path.join(repodir, '.gitmodules')):
|
||||
bb.process.run('git submodule foreach --recursive "git tag -f %s"' % basetag, cwd=repodir)
|
||||
bb.process.run('git submodule foreach --recursive "git tag -f --no-sign %s"' % basetag, cwd=repodir)
|
||||
|
||||
def recipe_to_append(recipefile, config, wildcard=False):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user