diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-12-17 17:37:27 +0200 |
---|---|---|
committer | Jun Wang <junbill.wang@samsung.com> | 2016-01-28 02:35:58 +0800 |
commit | 1a36070b9e6e8284f3c20c86b169a936fba58abb (patch) | |
tree | 6a90ee837744f71f65d393e60a5b1a60c9bf0941 /gbp/git | |
parent | f442e71ff26ed716b74010e5d4e46e9532d15b4c (diff) | |
download | git-buildpackage-1a36070b9e6e8284f3c20c86b169a936fba58abb.tar.gz git-buildpackage-1a36070b9e6e8284f3c20c86b169a936fba58abb.tar.bz2 git-buildpackage-1a36070b9e6e8284f3c20c86b169a936fba58abb.zip |
GitRepository.create_tag: use GitArgs class
Change-Id: I8ead4dda504152bde4c35ee0c03d6e3295820fd6
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/git')
-rw-r--r-- | gbp/git/repository.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py index fa3ed520..25fef0aa 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): """ |