0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-10-30 10:49:09 +01:00
gitea/services/repository
KN4CK3R 8e9b6817bc
Fix DeleteCollaboration transaction behaviour (#28886)
The method can't be called with an outer transaction because if the user
is not a collaborator the outer transaction will be rolled back even if
the inner transaction uses the no-error path.

`has == 0` leads to `return nil` which cancels the transaction. A
standalone call of this method does nothing but if used with an outer
transaction, that will be canceled.
2024-01-22 07:19:56 +00: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 branch list bug which displayed default branch twice (#28878) 2024-01-21 22:08:31 +08: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 Fix DeleteCollaboration transaction behaviour (#28886) 2024-01-22 07:19:56 +00:00
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
delete_test.go
fork.go Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
fork_test.go
hooks.go
lfs.go Abstract hash function usage (#28138) 2023-12-13 21:02:00 +00:00
lfs_test.go
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