Don't store assets modified time into generated files (#18193)

This commit is contained in:
Lunny Xiao authored and GitHub committed 2022-01-06 21:33:17 -05:00
1 parent 21ed4fd8da
commit a1c12fb0b3
11 files changed
+110 -22

No files matched your search

+6
View File
@@ -18,8 +18,14 @@ import (
"time"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/timeutil"
)
// GlobalModTime provide a gloabl mod time for embedded asset files
func GlobalModTime(filename string) time.Time {
return timeutil.GetExecutableModTime()
}
func fileSystem(dir string) http.FileSystem {
return Assets
}