modes/mirror: make Updated unchanged if no new commits fetched (#4341)

After sync mirror, get latest commit date and compare to current
repository updated time, only update it if the commit date is newer.
This commit is contained in:
Unknwon
2017-04-06 20:58:57 -04:00
parent 90b9f7e08c
commit 8d0417497b
6 changed files with 34 additions and 9 deletions

View File

@@ -16,7 +16,7 @@ import (
"github.com/gogits/gogs/pkg/setting"
)
const APP_VER = "0.11.5.0406"
const APP_VER = "0.11.6.0406"
func init() {
setting.AppVer = APP_VER