summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-12-17 17:37:27 +0200
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-12-19 14:10:43 +0200
commit448b7bc977a25757c2301f3f10a2665d52939b5c (patch)
tree58c1dfb560e995b36da5969c512272cb314ace83
parent4631e6cdfce55bc64b305c39180df1550837e09d (diff)
downloadgit-buildpackage-448b7bc977a25757c2301f3f10a2665d52939b5c.tar.gz
git-buildpackage-448b7bc977a25757c2301f3f10a2665d52939b5c.tar.bz2
git-buildpackage-448b7bc977a25757c2301f3f10a2665d52939b5c.zip
GitRepository.create_tag: use GitArgs class
Change-Id: I8ead4dda504152bde4c35ee0c03d6e3295820fd6 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r--gbp/git/repository.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index 9843d99b..7613d8f3 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -716,14 +716,14 @@ class GitRepository(object):
@param keyid: the GPG keyid used to sign the tag
@type keyid: C{str}
"""
- args = []
- args += [ '-m', msg ] if msg else []
+ args = GitArgs()
+ args.add_true(msg, ['-m', msg])
if sign:
- args += [ '-s' ]
- args += [ '-u', keyid ] if keyid else []
- args += [ name ]
- args += [ commit ] if commit else []
- self._git_command("tag", args)
+ args.add('-s')
+ args.add_true(keyid, ['-u', keyid])
+ args.add(name)
+ args.add_true(commit, commit)
+ self._git_command("tag", args.args)
def delete_tag(self, tag):
"""