ci: Force git-fetch-with-cli on windows as well

We already do this on linux, do this on windows as well

We need this as git has better handling of redirects, and
we are running into issues after gitlab.freedesktop.org
switched to using a cdn proxy.

Similar to the original issue [1]

[1]: https://gitlab.freedesktop.org/gstreamer/gst-ci/-/issues/71

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2196>
This commit is contained in:
Jordan Petridis 2025-04-09 10:14:11 +03:00 committed by Backport Bot
parent a78165849c
commit 4404116cd7

View file

@ -263,6 +263,11 @@ documentation:
- 'docker'
- 'windows'
- '2022'
before_script:
- New-Item -Force -Path ".cargo" -ItemType "directory"
- $git_config="[net]`ngit-fetch-with-cli = true`n"
- $git_config | out-file -encoding utf8 .cargo/config.toml
- Get-Content -Path .cargo/config.toml
script:
# Set the code page to UTF-8
- chcp 65001