mirror of https://github.com/go-gitea/gitea.git
fix empty repo updated time (#33120)
fixes #33119 routers/web/repo/view_home.go  Calling `updateContextRepoEmptyAndStatus` will always ask the DB to update the updated Unix attributes. When revisiting the repo's home page, the timestamp will be updated unexpectedly, so I added the needsUpdate variable to check whether, in the end, the commitment to db update is necessary if columns have not changed at all. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>pull/33125/head
parent
80e4f4c4eb
commit
1a95d9d6a1
Loading…
Reference in New Issue