1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-19 02:14:32 +01:00
gitea/modules
wxiaoguang 50111c71c3
Refactor legacy strange git operations (#22756)
During the refactoring of the git module, I found there were some
strange operations. This PR tries to fix 2 of them

1. The empty argument `--` in repo_attribute.go, which was introduced by
#16773. It seems unnecessary because nothing else would be added later.
2. The complex git service logic in repo/http.go. 
* Before: the `hasAccess` only allow `service == "upload-pack" ||
service == "receive-pack"`
* After: unrelated code is removed. No need to call ToTrustedCmdArgs
anymore.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-02-06 10:23:17 +08:00
..
actions
activitypub Add Chef package registry (#22554) 2023-02-06 09:49:21 +08:00
analyze
auth
avatar
base
cache
charset
container
context
csv
doctor
emoji
eventsource
generate
git Refactor legacy strange git operations (#22756) 2023-02-06 10:23:17 +08:00
gitgraph
graceful
hcaptcha
highlight
hostmatcher
html
httpcache
httplib
indexer
issue/template
json
lfs
log
markup
mcaptcha
metrics
migration
mirror
nosql
notification
options
packages Add Chef package registry (#22554) 2023-02-06 09:49:21 +08:00
paginator
password
pprof
private
process
proxy
proxyprotocol
public
queue
recaptcha
references
regexplru
repository Add Cargo package registry (#21888) 2023-02-05 18:12:31 +08:00
secret
session
setting Add Chef package registry (#22554) 2023-02-06 09:49:21 +08:00
sitemap
ssh
storage
structs
svg
sync
system
templates
test
timeutil
translation
turnstile
typesniffer
updatechecker
upload
uri
user
util Add Chef package registry (#22554) 2023-02-06 09:49:21 +08:00
validation
watcher
web
webhook