diff options
Diffstat (limited to 'gitTag.common.go')
| -rw-r--r-- | gitTag.common.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gitTag.common.go b/gitTag.common.go index 5292b01..7535cd9 100644 --- a/gitTag.common.go +++ b/gitTag.common.go @@ -156,13 +156,13 @@ func (repo *Repo) IsRemoteBranch(findname string) bool { return false } -func (repo *Repo) IfRefExists(refname string) bool { +func (repo *Repo) IfRefExists(refname string) *GitTag { for t := range repo.Tags.IterAll() { if _, filename := filepath.Split(t.Refname); filename == refname { - return true + return t } } - return false + return nil } // finds the newest tag. used for deciding if master needs to be published |
