]> xenbits.xensource.com Git - people/gdunlap/xsatool/commitdiff
git: Add Repo.DeleteTag
authorGeorge Dunlap <george.dunlap@citrix.com>
Wed, 10 May 2017 17:28:39 +0000 (18:28 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Wed, 10 May 2017 17:28:39 +0000 (18:28 +0100)
Signed-off-by: George Dunlap <george.dunlap@citrix.com>
git.go

diff --git a/git.go b/git.go
index 8faa2ddf459f1600f6367430bf221e407dac4885..845d153c65bab238c00ccfa051f2dbaf86d581ac 100644 (file)
--- a/git.go
+++ b/git.go
@@ -149,6 +149,12 @@ func (r Repo) Tags() (tags []string, err error) {
        return
 }
 
+func (r Repo) DeleteTag(tag string) (err error) {
+       _, err = r.gitCmd("tag", "-d", tag)
+
+       return
+}
+
 // Do a 'git am', and if it fails, clean up the tree
 func (r Repo) AmClean(amglob string) (out []byte, err error) {
        files, err := filepath.Glob(amglob)