forgejo/modules
wxiaoguang 50111c71c3
Refactor legacy strange git operations ()
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
. 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
..
actions Fix actions workflow branches match bug () 2023-02-02 20:40:08 +08:00
activitypub Add Chef package registry () 2023-02-06 09:49:21 +08:00
analyze Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
auth Fix bugs with WebAuthn preventing sign in and registration. () 2023-02-01 07:24:10 +00:00
avatar Unify hashing for avatar () 2023-01-02 22:46:39 +01:00
base Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
cache Fix get system setting bug when enabled redis cache () 2023-01-02 00:06:52 +08:00
charset Fix line spacing for plaintext previews () 2023-02-01 22:51:02 -06:00
container Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
context Add new captcha: cloudflare turnstile () 2023-02-05 15:29:03 +08:00
csv Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
doctor Add cron method to gc LFS MetaObjects () 2023-01-16 13:50:53 -06:00
emoji Fix unstable emoji sort () 2023-01-05 13:58:51 +02:00
eventsource Move convert package to services () 2022-12-29 10:57:15 +08:00
generate Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
git Refactor legacy strange git operations () 2023-02-06 10:23:17 +08:00
gitgraph Refactor git command package to improve security and maintainability () 2023-02-04 10:30:43 +08:00
graceful Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
hcaptcha Consume hcaptcha and pwn deps () 2023-01-29 09:49:51 -06:00
highlight Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
hostmatcher Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
html Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
httpcache Add some comments for recent code () 2023-02-02 11:39:38 -06:00
httplib Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
indexer refactor some functions to support ctx as first parameter () 2022-12-03 10:48:26 +08:00
issue/template Allow issue templates to not render title () 2023-01-26 22:45:49 -06:00
json Update gitea-vet to check FSFE REUSE () 2022-12-02 22:14:57 +08:00
lfs Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
log Improve trace logging for pulls and processes () 2023-02-03 18:11:48 -05:00
markup Fix README TOC links () 2023-01-31 13:21:29 +08:00
mcaptcha Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
metrics Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
migration Show migration validation error () 2023-01-27 20:56:00 +08:00
mirror Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
nosql Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
notification Implement actions () 2023-01-31 09:45:19 +08:00
options Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
packages Add Chef package registry () 2023-02-06 09:49:21 +08:00
paginator Update gitea-vet to check FSFE REUSE () 2022-12-02 22:14:57 +08:00
password Consume hcaptcha and pwn deps () 2023-01-29 09:49:51 -06:00
pprof Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
private Implement actions () 2023-01-31 09:45:19 +08:00
process Improve trace logging for pulls and processes () 2023-02-03 18:11:48 -05:00
proxy Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
proxyprotocol Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
public Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
queue Correctly handle select on multiple channels in Queues () 2022-12-30 02:06:47 +02:00
recaptcha Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
references Use correct captured group range when parsing cross-reference () 2023-01-31 10:08:05 +01:00
regexplru Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
repository Add Cargo package registry () 2023-02-05 18:12:31 +08:00
secret Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
session Update gitea-vet to check FSFE REUSE () 2022-12-02 22:14:57 +08:00
setting Add Chef package registry () 2023-02-06 09:49:21 +08:00
sitemap Fix sitemap () 2022-12-30 23:31:00 +08:00
ssh Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
storage Implement actions () 2023-01-31 09:45:19 +08:00
structs Implement actions () 2023-01-31 09:45:19 +08:00
svg Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
sync Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
system Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
templates Implement actions () 2023-01-31 09:45:19 +08:00
test refactor some functions to support ctx as first parameter () 2022-12-03 10:48:26 +08:00
timeutil Check for zero time instant in TimeStamp.IsZero() () 2022-12-20 10:04:55 +08:00
translation Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
turnstile Add new captcha: cloudflare turnstile () 2023-02-05 15:29:03 +08:00
typesniffer Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
updatechecker Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
upload Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
uri Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
user Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
util Add Chef package registry () 2023-02-06 09:49:21 +08:00
validation Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
watcher Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
web refactor bind functions based on generics () 2022-12-12 16:09:26 +08:00
webhook Restructure webhook module () 2023-01-01 23:23:15 +08:00