1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-23 21:34:43 +03:00
gitea/routers
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
..
api Add Chef package registry (#22554) 2023-02-06 09:49:21 +08:00
common Support disabling database auto migration (#22053) 2022-12-07 09:58:31 -06:00
install fix: update settings table on install (#22326) 2023-01-03 14:33:41 -06:00
private Implement actions (#21937) 2023-01-31 09:45:19 +08:00
utils Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web Refactor legacy strange git operations (#22756) 2023-02-06 10:23:17 +08:00
init.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00