]> source.dussan.org Git - gitea.git/commit
Use proxy for pull mirror (#22771) (#22772)
authorGusted <postmaster@gusted.xyz>
Sat, 11 Feb 2023 08:11:54 +0000 (09:11 +0100)
committerGitHub <noreply@github.com>
Sat, 11 Feb 2023 08:11:54 +0000 (16:11 +0800)
commit8fa419c4c1e34e4f26adf9323d4886bbb558df25
tree17a1bf55b8fa8e51ce4d03ddf3468c5c569d424e
parent77c89572e936ae785d60b66d29316a2c6257e810
Use proxy for pull mirror (#22771) (#22772)

- Backport #22771
  - Use the proxy (if one is specified) for pull mirrors syncs.
- Pulled the code from
https://github.com/go-gitea/gitea/blob/c2774d9e80d9a436d9c2044960369c4db227e3a0/modules/git/repo.go#L164-L170
  - Downstream issue: https://codeberg.org/forgejo/forgejo/issues/302

---------

Co-authored-by: zeripath <art27@cantab.net>
modules/git/repo.go
modules/proxy/proxy.go
services/mirror/mirror_pull.go