0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-03-10 21:52:19 -05:00
forgejo/services/repository
Lunny Xiao e953bce5d7 fix(repository): git push to an adopted repository fails
Fix adopt repository has empty object name in database (#31333)

Fix #31330
Fix #31311

A workaround to fix the old database is to update object_format_name to
`sha1` if it's empty or null.

(cherry picked from commit 1968c2222dcf47ebd1697afb4e79a81e74702d31)

With tests services/repository/adopt_test.go

(cherry picked from commit 8efef06fb1)
2024-06-16 18:15:02 +00:00
..
archiver
commitstatus Performance improvement for FindReposLastestCommitStatuses 2024-05-01 05:36:50 +00:00
files
adopt.go Fix incorrect default branch when adopt a repository (#30912) (#30928) 2024-05-14 16:09:33 +02:00
adopt_test.go fix(repository): git push to an adopted repository fails 2024-06-16 18:15:02 +00:00
avatar.go
avatar_test.go
branch.go Fix push multiple branches error with tests (#31151) 2024-06-03 09:47:51 +02:00
cache.go
check.go
collaboration.go
collaboration_test.go
commit.go
contributors_graph.go
contributors_graph_test.go
create.go
create_test.go
delete.go mysql: use inner join for hook_task deletion 2024-05-24 12:46:33 +00:00
fork.go
fork_test.go
generate.go
generate_test.go
hooks.go
init.go
lfs.go
lfs_test.go test: LFS gc should not delete all metadata objects 2024-04-26 10:27:01 +00:00
main_test.go
migrate.go
push.go
repository.go
repository_test.go
review.go
review_test.go
setting.go
template.go
transfer.go
transfer_test.go