From 7a0297819d3aececb8b633de5a2995c40b7bfcae Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Wed, 20 Sep 2017 08:26:49 +0300 Subject: Sync releases table with tags on push and for mirrors (#2459) * Sync releases table with tags on push and for mirrors * Code style fixes * Fix api to return only releases * Optimize release creation and update Minimize posibility of race conditions * Fix release lower tag name updating * handle tag reference update by addionally comparing commit id --- modules/context/repo.go | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/context/repo.go') diff --git a/modules/context/repo.go b/modules/context/repo.go index 519c3afc07..6446b859ad 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -357,6 +357,7 @@ func RepoAssignment() macaron.Handler { count, err := models.GetReleaseCountByRepoID(ctx.Repo.Repository.ID, models.FindReleasesOptions{ IncludeDrafts: false, + IncludeTags: true, }) if err != nil { ctx.Handle(500, "GetReleaseCountByRepoID", err) -- cgit v1.2.3