]> source.dussan.org Git - gitea.git/commit
Fix incorrect object id hash function (#30708)
authorwxiaoguang <wxiaoguang@gmail.com>
Fri, 26 Apr 2024 09:49:48 +0000 (17:49 +0800)
committerGitHub <noreply@github.com>
Fri, 26 Apr 2024 09:49:48 +0000 (09:49 +0000)
commitcd70ab31cdee8116055819bf67bcf374e2aa6172
tree654f7df9d2d3244afe93c1fc162288f4482ccc08
parent1e749b80d741c3a5c7eff6087d820e4d0d1ba3a2
Fix incorrect object id hash function (#30708)

Great thanks to @oliverpool for figuring out the problem and proposing a
fix.

Regression of #28138

Incorrect hash causes the user's LFS files get all deleted when running
`doctor fix all`

(by the way, remove unused/non-standard comments)

Co-authored-by: Giteabot <teabot@gitea.io>
modules/git/object_format.go
modules/git/object_id.go
modules/git/object_id_test.go