mirror of
https://github.com/go-gitea/gitea.git
synced 2025-11-08 06:45:57 +01:00
The update call on the user call races if there is more than one repository creation concurrently, leading to incorrect count of repos. Split things in two, so that we call the update for last visibility (which isn't problematic if it races, since it can only ever be best-effort anyway). This way we can atomically increment the count of repos.
78 KiB
78 KiB