diff options
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 { |