0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 11:24:50 +01:00
gitea/services/repository
zeripath 9e6e1dc950
Improve checkBranchName (#17901)
The current implementation of checkBranchName is highly inefficient
involving opening the repository, the listing all of the branch names
checking them individually before then using using opened repo to get
the tags.

This PR avoids this by simply walking the references from show-ref
instead of opening the repository (in the nogogit case).

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-08 19:08:16 +00:00
..
archiver Move repo archiver to models/repo (#17913) 2021-12-06 15:19:28 +08:00
files Refactor various strings (#17784) 2021-12-02 15:28:08 +08:00
adopt.go Improve checkBranchName (#17901) 2021-12-08 19:08:16 +00:00
branch.go Improve checkBranchName (#17901) 2021-12-08 19:08:16 +00:00
cache.go Move some functions into services/repository (#17677) 2021-11-17 23:17:31 +08:00
check.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
fork.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
fork_test.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
generate.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
hooks.go Move some functions into services/repository (#17677) 2021-11-17 23:17:31 +08:00
main_test.go
push.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
repository.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
transfer.go Move accessmode into models/perm (#17828) 2021-11-28 12:58:28 +01:00
transfer_test.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00