aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-11-02 12:43:55 +0100
committerGuido Günther <agx@sigxcpu.org>2011-11-06 18:17:47 +0100
commit043b1cb3a4ef51fecafdb9558b183b62425f4d72 (patch)
tree98d46e3d1a43f0fbb125d98281d236375478a22a
parent8c22803cefcb380caeb2f821cc625b460c647505 (diff)
GitRepository.tag(): Always add the '-s' flag
when signing tags.
-rw-r--r--gbp/git.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/git.py b/gbp/git.py
index 31d7cab9..b5331169 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -456,7 +456,8 @@ class GitRepository(object):
args = []
args += [ '-m', msg ] if msg else []
if sign:
- args += [ '-u', keyid ] if keyid else [ '-s' ]
+ args += [ '-s' ]
+ args += [ '-u', keyid ] if keyid else []
args += [ name ]
args += [ commit ] if commit else []
self._git_command("tag", args)