summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-02-06 10:23:17 +0800
committerGitHub <noreply@github.com>2023-02-06 10:23:17 +0800
commit50111c71c3d8feedb170a0122c97237f78d1751f (patch)
treecfad0bcfe01c1558772e3df69097d007b039a3ab /.gitignore
parentd987ac6bf1d78b3a9bbd213e73b871ebc687acb2 (diff)
downloadgitea-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 '.gitignore')
0 files changed, 0 insertions, 0 deletions