gitea/models/repo
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>
..
archiver.go Add support for sha256 repositories ()
attachment.go More refactoring of `db.DefaultContext` ()
attachment_test.go More refactoring of `db.DefaultContext` ()
avatar.go Penultimate round of `db.DefaultContext` refactor ()
collaboration.go Move more functions to db.Find ()
collaboration_test.go Move more functions to db.Find ()
fork.go Move more functions to db.Find ()
fork_test.go refactor some functions to support ctx as first parameter ()
git.go Reduce usage of `db.DefaultContext` ()
issue.go Rename almost all Ctx functions ()
language_stats.go Penultimate round of `db.DefaultContext` refactor ()
main_test.go make writing main test easier ()
mirror.go More `db.DefaultContext` refactor ()
pushmirror.go Refactor deletion ()
pushmirror_test.go Refactor deletion ()
redirect.go Final round of `db.DefaultContext` refactor ()
redirect_test.go Final round of `db.DefaultContext` refactor ()
release.go Add support for sha256 repositories ()
release_test.go Another round of `db.DefaultContext` refactor ()
repo.go Add support for sha256 repositories ()
repo_indexer.go Add support for sha256 repositories ()
repo_list.go Restricted users only see repos in orgs which their team was assigned to ()
repo_list_test.go Replace 'userxx' with 'orgxx' in all test files when the user type is org ()
repo_test.go Refactor SSH clone URL generation code ()
repo_unit.go Fix schedule tasks bugs ()
repo_unit_test.go add disable workflow feature ()
search.go Split "modules/context.go" to separate files ()
star.go More refactoring of `db.DefaultContext` ()
star_test.go More refactoring of `db.DefaultContext` ()
topic.go Add orphaned topic consistency check ()
topic_test.go Next round of `db.DefaultContext` refactor ()
update.go Next round of `db.DefaultContext` refactor ()
upload.go Refactor deletion ()
user_repo.go Refactor authors dropdown (send get request from frontend to avoid long wait time) ()
user_repo_test.go Implement FSFE REUSE for golang files ()
watch.go Refactor deletion ()
watch_test.go Replace more db.DefaultContext ()
wiki.go Implement FSFE REUSE for golang files ()
wiki_test.go Implement FSFE REUSE for golang files ()