diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-02-06 10:23:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 10:23:17 +0800 |
commit | 50111c71c3d8feedb170a0122c97237f78d1751f (patch) | |
tree | cfad0bcfe01c1558772e3df69097d007b039a3ab /.golangci.yml | |
parent | d987ac6bf1d78b3a9bbd213e73b871ebc687acb2 (diff) | |
download | gitea-50111c71c3d8feedb170a0122c97237f78d1751f.tar.gz gitea-50111c71c3d8feedb170a0122c97237f78d1751f.zip |
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>
Diffstat (limited to '.golangci.yml')
0 files changed, 0 insertions, 0 deletions