forgejo/services/repository
Adam Majer d68a613ba8
Add support for sha256 repositories (#23894)
Currently only SHA1 repositories are supported by Gitea. This adds
support for alternate SHA256 with the additional aim of easier support
for additional hash types in the future.

Fixes: #13794
Limited by: https://github.com/go-git/go-git/issues/899
Depend on: #28138

<img width="776" alt="图片" src="https://github.com/go-gitea/gitea/assets/81045/5448c9a7-608e-4341-a149-5dd0069c9447">

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
2024-01-19 17:05:02 +01:00
..
archiver Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
files Fix reverting a merge commit failing (#28794) 2024-01-16 15:06:51 +00:00
adopt.go
adopt_test.go
avatar.go
avatar_test.go
branch.go Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00
cache.go Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
check.go Adjust object format interface (#28469) 2023-12-17 11:56:08 +00:00
collaboration.go
collaboration_test.go
commit.go
create.go Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
create_test.go
delete.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
delete_test.go
fork.go Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
fork_test.go
hooks.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
lfs.go Abstract hash function usage (#28138) 2023-12-13 21:02:00 +00:00
lfs_test.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2023-12-07 15:27:36 +08:00
main_test.go
push.go Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
repository.go
repository_test.go
review.go
review_test.go
setting.go Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00
template.go
transfer.go
transfer_test.go