2e85ad665a
Contents API should return 404 on not exist ( #10323 )
...
* Return 404 on not exist
* swagger update and use git.IsErrNotExist
* Handle delete too
* Handle delete too x2
* Fix pr 10323 (#3 )
* fix TESTS
* leafe a note for fututre
* placate golangci-lint
Signed-off-by: Andrew Thornton <[email protected] >
* Update integrations/api_repo_file_delete_test.go
Co-Authored-By: 6543 <[email protected] >
Co-authored-by: techknowlogick <[email protected] >
Co-authored-by: Antoine GIRARD <[email protected] >
Co-authored-by: 6543 <[email protected] >
Co-authored-by: guillep2k <[email protected] >
2020-04-15 02:18:51 -03:00
Lunny Xiao and GitHub
2677d071f9
Move newbranch to standalone package ( #9627 )
...
* Move newbranch to standalone package
* move branch functions to modules to avoid dependencies cycles
* fix tests
* fix lint
* fix lint
2020-01-14 11:38:04 +08:00
zeripath and GitHub
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
2019-11-13 07:01:19 +00:00
Richard Mahn and techknowlogick
cd96dee982
Fixes #7292 - API File Contents bug ( #7301 )
2019-06-29 16:51:10 -04:00