diff options
author | Huw Jones <huw@pexip.com> | 2023-03-14 10:32:28 +0000 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2023-03-14 18:02:37 +0100 |
commit | 343453175a6d5378bd40c2a9aaa9500e4f2f6b56 (patch) | |
tree | 4f9aececa7a60ee9a27e41e21102cbbc783ea8c5 | |
parent | cf5b2ad3a3716487f1247e80a38c742d0cc5b865 (diff) |
repository.create_tag: Explicitly don't sign when sign=False
This avoids `tag.gpgsign = true` from git-config leaking through.
Closes: #1032932
-rw-r--r-- | gbp/git/repository.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py index edbdfe9f..a8b4073e 100644 --- a/gbp/git/repository.py +++ b/gbp/git/repository.py @@ -686,6 +686,8 @@ class GitRepository(object): if sign: args += ['-s'] args += ['-u', keyid] if keyid else [] + else: + args += ['--no-sign'] args += [name] args += [commit] if commit else [] self._git_command("tag", args) |