zeripath
722a7c902d
Add Close() method to gogitRepository ( #8901 )
...
In investigating #7947 it has become clear that the storage component of go-git repositories needs closing.
This PR adds this Close function and adds the Close functions as necessary.
In TransferOwnership the ctx.Repo.GitRepo is closed if it is open to help prevent the risk of multiple open files.
Fixes #7947
5 years ago
Lunny Xiao
34eee25bd4
Move sdk structs to modules/structs ( #6905 )
...
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
6 years ago
Lunny Xiao
d578b71d61
move code.gitea.io/git to code.gitea.io/gitea/modules/git ( #6364 )
...
* move code.gitea.io/git to code.gitea.io/gitea/modules/git
* fix imports
* fix fmt
* fix misspell
* remove wrong tests data
* fix unit tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* enable Debug to trace the failure tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* comment commit count tests since git clone depth is 50
* fix tests
* update from code.gitea.io/git
* revert change to makefile
6 years ago
Lauris BH
fada6968a8
Fix new release creation API to allow empty target ( #5870 )
...
* Fix new release creation API to allow empty target
* Add more test cases
* Update swagger
6 years ago
B-OnTheGo
e47df0b301
Enforce token on api routes [fixed critical security issue #4357 ] ( #4840 )
6 years ago
Marc Brückner
695b10bedd
Fix API-Endpoint release ( #3012 )
...
* Fixes API-Endpoint release (#3005 )
* Using context.ReferencesGitRepo(); doing the same in the PATCH route.
* Add release create, get and update test
7 years ago