]> source.dussan.org Git - gitea.git/commit
Sync releases table with tags on push and for mirrors (#2459)
authorLauris BH <lauris@nix.lv>
Wed, 20 Sep 2017 05:26:49 +0000 (08:26 +0300)
committerLunny Xiao <xiaolunwen@gmail.com>
Wed, 20 Sep 2017 05:26:49 +0000 (13:26 +0800)
commit7a0297819d3aececb8b633de5a2995c40b7bfcae
tree7aed967ad21f95df2b16359ec1551662d653a1fd
parent8b6236d67b21f2a3291207ef77d103a3ce7476ba
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
models/migrations/migrations.go
models/migrations/v42.go [new file with mode: 0644]
models/release.go
models/repo.go
models/repo_mirror.go
models/update.go
modules/context/repo.go
routers/api/v1/repo/release.go
routers/repo/release.go
templates/repo/release/list.tmpl