gitea/models
Adam Majer d68a613ba8
Add support for sha256 repositories ()
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: 
Limited by: https://github.com/go-git/go-git/issues/899
Depend on: 

<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>
..
actions Fix incorrect action duration time when rerun the job before executed once ()
activities Speed up loading the dashboard on mysql/mariadb ()
admin
asymkey Move more functions to db.Find ()
auth Move more functions to db.Find ()
avatars Refactor some legacy code and remove unused code ()
db Move more functions to db.Find ()
dbfs
fixtures Fix reverting a merge commit failing ()
git Add support for sha256 repositories ()
issues Add support for sha256 repositories ()
migrations Add support for sha256 repositories ()
organization Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods ()
packages Fix some RPM registry flaws ()
perm Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods ()
project Fix comment permissions ()
pull Add support for sha256 repositories ()
repo Add support for sha256 repositories ()
secret Use db.Find instead of writing methods for every object ()
shared/types
system Refactor deletion ()
unit
unittest
user Forbid removing the last admin user ()
webhook Refactor deletion ()
error.go Forbid removing the last admin user ()
fixture_generation.go
fixture_test.go
main_test.go
org.go Refactor deletion ()
org_team.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods ()
org_team_test.go
org_test.go
repo.go Refactor deletion ()
repo_test.go
repo_transfer.go
repo_transfer_test.go