mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-15 13:47:42 +00:00
![]() Fix #28144 To make the resources will be cleanup once failed. All repository operations now follow a consistent pattern: - 1. Create a database record for the repository with the status being_migrated. - 2. Register a deferred cleanup function to delete the repository and its related data if the operation fails. - 3. Perform the actual Git and database operations step by step. - 4. Upon successful completion, update the repository’s status to ready. The adopt operation is a special case — if it fails, the repository on disk should not be deleted. |
||
---|---|---|
.. | ||
branch_list.go | ||
branch_test.go | ||
branch.go | ||
commit_status_summary.go | ||
commit_status_test.go | ||
commit_status.go | ||
lfs_lock_list.go | ||
lfs_lock.go | ||
lfs.go | ||
main_test.go | ||
protected_branch_list_test.go | ||
protected_branch_list.go | ||
protected_branch_test.go | ||
protected_branch.go | ||
protected_tag_test.go | ||
protected_tag.go |