mirror of
https://github.com/gogs/gogs.git
synced 2026-05-07 20:37:27 +02:00
lfs: verify content hash and prevent object overwrite (#8166)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
@@ -158,6 +158,7 @@ func NewRepoContext() {
|
||||
}
|
||||
|
||||
RemoveAllWithNotice("Clean up repository temporary data", filepath.Join(conf.Server.AppDataPath, "tmp"))
|
||||
RemoveAllWithNotice("Clean up LFS temporary data", conf.LFS.ObjectsTempPath)
|
||||
}
|
||||
|
||||
// Repository contains information of a repository.
|
||||
|
||||
Reference in New Issue
Block a user