summaryrefslogtreecommitdiffstats
path: root/models/release.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-27 00:24:24 -0500
committerUnknwon <u@gogs.io>2015-11-27 00:24:24 -0500
commit392f3ee21016476fb9794f78882d6c447acb8449 (patch)
treed2ff57d2ddbe77760021ea57dafc70004ec95269 /models/release.go
parentc50a3503e6e8ece0dabd109932a72fe093c3cab3 (diff)
downloadgitea-392f3ee21016476fb9794f78882d6c447acb8449.tar.gz
gitea-392f3ee21016476fb9794f78882d6c447acb8449.zip
wiki: finish new
Diffstat (limited to 'models/release.go')
-rw-r--r--models/release.go4
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 {