From 392f3ee21016476fb9794f78882d6c447acb8449 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 27 Nov 2015 00:24:24 -0500 Subject: wiki: finish new --- models/release.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'models/release.go') diff --git a/models/release.go b/models/release.go index fbb7b9a85e..08e006095a 100644 --- a/models/release.go +++ b/models/release.go @@ -51,6 +51,10 @@ func IsReleaseExist(repoID int64, tagName string) (bool, error) { return x.Get(&Release{RepoID: repoID, LowerTagName: strings.ToLower(tagName)}) } +func init() { + git.GetVersion() +} + func createTag(gitRepo *git.Repository, rel *Release) error { // Only actual create when publish. if !rel.IsDraft { -- cgit v1.2.3