Make sure to reset commit count in the cache on mirror syncing (#4720)
Make sure to reset commit count in the cache on mirror syncing (#4720)

* Make sure to reset commit count in the cache on mirror syncing

* reset count of commits in all branches

typeless/gitea,vCaesar/gitea,Bwko/gitea,sapk-fork/gitea,lafriks/gitea,cez81/gitea,kubatyszko/gitea,lunny/gitea,typeless/gitea,sapk-fork/gitea,sapk-fork/gitea,vCaesar/gitea,Bwko/gitea,cez81/gitea,lunny/gitea,typeless/gitea,kubatyszko/gitea,typeless/gitea,vdbt/gitea,Bwko/gitea,lafriks/gitea,lunny/gitea,kubatyszko/gitea,go-gitea/gitea,sapk-fork/gitea,cez81/gitea,vdbt/gitea,go-gitea/gitea,lafriks/gitea,go-gitea/gitea