forgejo/services/repository/files
Earl Warren a53194f4b1
fix(api): error 500 on tag creation when a workflow exists
files_service.CreateCommitStatus must not explicitly call
gitRepo.Close(), it will be called by the closer function.

Calling it explicitly will cause the repository to be closed
prematurely when obtained from the context, making it unusuable by the
caller later on.

For instance, as CreateCommitStatus is called indirectly when a
workflow exists for the tag to be created, it will make the repositoryn
in the context unusable for the tag creation API.
2024-04-19 10:52:17 +02:00
..
cherry_pick.go Fix reverting a merge commit failing (#28794) (#28825) 2024-01-31 14:18:25 +01:00
commit.go fix(api): error 500 on tag creation when a workflow exists 2024-04-19 10:52:17 +02:00
content.go [GITEA] Add download URL for executable files 2023-12-04 17:19:13 +00:00
content_test.go move repository deletion to service layer (#26948) 2023-09-08 04:51:15 +00:00
diff.go Fix reverting a merge commit failing (#28794) (#28825) 2024-01-31 14:18:25 +01:00
diff_test.go [BUG] split code conversations in diff tab (#2306) 2024-02-16 14:06:43 +01:00
file.go API endpoint for changing/creating/deleting multiple files (#24887) 2023-05-29 17:41:35 +08:00
file_test.go Move web/api context related testing function into a separate package (#26859) 2023-09-01 11:26:07 +00:00
patch.go Fix reverting a merge commit failing (#28794) (#28825) 2024-01-31 14:18:25 +01:00
temp_repo.go Fix reverting a merge commit failing (#28794) (#28825) 2024-01-31 14:18:25 +01:00
tree.go Return empty url for submodule tree entries (#23043) 2023-02-21 12:31:17 -05:00
tree_test.go Move web/api context related testing function into a separate package (#26859) 2023-09-01 11:26:07 +00:00
update.go Fix reverting a merge commit failing (#28794) (#28825) 2024-01-31 14:18:25 +01:00
upload.go Fix reverting a merge commit failing (#28794) (#28825) 2024-01-31 14:18:25 +01:00