mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-18 07:12:20 +00:00
9e6e1dc950
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> |
||
---|---|---|
.. | ||
archiver | ||
files | ||
adopt.go | ||
branch.go | ||
cache.go | ||
check.go | ||
fork.go | ||
fork_test.go | ||
generate.go | ||
hooks.go | ||
main_test.go | ||
push.go | ||
repository.go | ||
transfer.go | ||
transfer_test.go |