PR: https://github.com/go-gitea/gitea/pull/18752
The gitea_uploader.go
is modified in a minimal way to move around 100 lines to the updateGitForPullRequest
, the code logic is otherwise not modified. Tests are written to provide 100% coverage, except for the system errors from os.Create
etc.