mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 11:13:38 +08:00
291bbc4fb9
This should fix fetching from gitlab. In order to get SSRF protection, we had to prevent redirects when cloning via git, but some repos are behind redirects and we want to support those too. We use `FinalDestination` before cloning to try to simulate git with redirects, but this isn't quite how git works, so there's some discrepancies between our SSRF protected cloning behavior and normal git behavior that I'm trying to work around. This is temporary fix. It would be better to use `FinalDestination` to simulate the first request that git makes. I aim to make it work like that in the not too distant future, but this is better for now. |
||
---|---|---|
.. | ||
git_importer.rb | ||
zip_exporter.rb | ||
zip_importer.rb |