zeripath
7934fe5925
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
Tamal Saha
033fe113c1
Use gitea forked macaron ( #7933 )
Signed-off-by: Tamal Saha <tamal@appscode.com>
5 years ago
Lunny Xiao
f47714c501
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
Lunny Xiao
1c80f31f40
Restrict permission check on repositories and fix some problems ( #5314 )
* fix units permission problems
* fix some bugs and merge LoadUnits to repoAssignment
* refactor permission struct and add some copyright heads
* remove unused codes
* fix routes units check
* improve permission check
* add unit tests for permission
* fix typo
* fix tests
* fix some routes
* fix api permission check
* improve permission check
* fix some permission check
* fix tests
* fix tests
* improve some permission check
* fix some permission check
* refactor AccessLevel
* fix bug
* fix tests
* fix tests
* fix tests
* fix AccessLevel
* rename CanAccess
* fix tests
* fix comment
* fix bug
* add missing unit for test repos
* fix bug
* rename some functions
* fix routes check
6 years ago
Ethan Koenig
5a752609bc
API endpoint for testing webhook ( #3550 )
* API endpoint for testing webhook
* Empty commit to rerun CI
7 years ago
Ethan Koenig
c5e12c5b2e
Unit tests for routers/repo/issue_label ( #3198 )
7 years ago
Lunny Xiao
1b434bae40
Fix compile failed without gcc ( #3130 )
* fix comile failed without gcc
* add sqlite tag for unit test
7 years ago
Ethan Koenig
6b5918e41c
Fix missing branch in release bug ( #3108 )
7 years ago
Lunny Xiao
6c183dba54
Fix missing password length check when change password ( #3039 )
* fix missing password length check when change password
* add tests for change password
7 years ago
Ethan Koenig
c823d71928
Unit tests for wiki routers ( #3022 )
7 years ago
Ethan Koenig
1a50678894
Fix counts on issues dashboard ( #2215 )
* Fix counts on issues dashboard
* setupSess -> setupSession
* Unit test
* Load repo owners for issues
8 years ago