mirror of
https://gitee.com/gitea/gitea
synced 2025-11-10 03:20:24 +08:00
Don't store assets modified time into generated files (#18193)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user