diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-10-24 14:12:59 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-10-26 09:44:24 +0200 |
commit | d6999f791909f22c9846e24b45a7032540894691 (patch) | |
tree | 069c4c08197a1bdf1d0097c40811b13edac7c587 /gbp/command_wrappers.py | |
parent | 718f0c3dda9c9691d6e99821aca89a440d5075e7 (diff) |
Replace GitTag by GitRepository.create_tag()
Diffstat (limited to 'gbp/command_wrappers.py')
-rw-r--r-- | gbp/command_wrappers.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/gbp/command_wrappers.py b/gbp/command_wrappers.py index 33d6823c..8d942b8e 100644 --- a/gbp/command_wrappers.py +++ b/gbp/command_wrappers.py @@ -230,29 +230,6 @@ class GitCommand(Command): self.run_error = "Couldn't run git %s" % cmd -# FIXME: move to gbp.git.create_tag -class GitTag(GitCommand): - """Wrap git tag""" - def __init__(self, sign_tag=False, keyid=None): - GitCommand.__init__(self,'tag') - self.sign_tag = sign_tag - self.keyid = keyid - - def __call__(self, version, msg="Tagging %(version)s", commit=None): - self.run_error = 'Couldn\'t tag "%s"' % (version,) - if self.sign_tag: - if self.keyid: - sign_opts = [ '-u', self.keyid ] - else: - sign_opts = [ '-s' ] - else: - sign_opts = [] - cmd = sign_opts + [ '-m', msg % locals(), version] - if commit: - cmd += [ commit ] - GitCommand.__call__(self, cmd) - - def copy_from(orig_dir, filters=[]): """ copy a source tree over via tar |