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:
ᴊᴏᴇ ᴄʜᴇɴ
2026-02-08 17:14:12 -05:00
committed by Joe Chen
parent f5c8030c1f
commit 5e6014c421
9 changed files with 100 additions and 56 deletions

View File

@@ -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.