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
..
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2022-05-08 01:05:52 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-01-03 16:17:13 +08:00
2023-01-03 16:17:13 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2019-03-27 17:33:00 +08:00
2022-12-01 19:56:04 +08:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2022-12-27 09:15:35 +08:00
2023-02-06 10:23:17 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-12-27 21:12:49 +08:00
2022-12-27 21:12:49 +08:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-12-27 21:12:49 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2022-12-27 21:12:49 +08:00
2022-12-27 21:12:49 +08:00
2023-02-04 10:30:43 +08:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-12-27 21:12:49 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00