diff options
author | Unknwon <u@gogs.io> | 2015-11-27 00:24:24 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-27 00:24:24 -0500 |
commit | 392f3ee21016476fb9794f78882d6c447acb8449 (patch) | |
tree | d2ff57d2ddbe77760021ea57dafc70004ec95269 /models/release.go | |
parent | c50a3503e6e8ece0dabd109932a72fe093c3cab3 (diff) | |
download | gitea-392f3ee21016476fb9794f78882d6c447acb8449.tar.gz gitea-392f3ee21016476fb9794f78882d6c447acb8449.zip |
wiki: finish new
Diffstat (limited to 'models/release.go')
-rw-r--r-- | models/release.go | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |