forgejo/routers/web
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
..
admin Add main landmark to templates and adjust titles (#22670) 2023-02-01 22:56:10 +00:00
auth Fix error on account activation with wrong passwd (#22609) 2023-01-28 15:59:46 +08:00
events
explore Remove ONLY_SHOW_RELEVANT_REPOS setting (#21962) 2023-02-04 21:26:38 +08:00
feed Add Feed for Releases and Tags (#21696) 2022-12-21 15:06:26 -06:00
healthcheck
misc
org Add Cargo package registry (#21888) 2023-02-05 18:12:31 +08:00
repo Refactor legacy strange git operations (#22756) 2023-02-06 10:23:17 +08:00
shared Add Cargo package registry (#21888) 2023-02-05 18:12:31 +08:00
user Add Chef package registry (#22554) 2023-02-06 09:49:21 +08:00
auth.go
auth_windows.go
base.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Add Chef package registry (#22554) 2023-02-06 09:49:21 +08:00
webfinger.go