Presque certainement à cause des correctifs de protection SSRF.
Gitlab redirige en 301 un git clone pour https://gitlab.com/silentboatman/discourse-masonry-image-gallery vers https://gitlab.com/silentboatman/discourse-masonry-image-gallery.git/ (sic, se termine par .git/) mais git est appelé avec -c http.followRedirects=false, donc cela échoue.
Entrer https://gitlab.com/silentboatman/discourse-masonry-image-gallery.git/ comme URL de dépôt directement ne fonctionne pas car cela est retransformé en https://gitlab.com/silentboatman/discourse-masonry-image-gallery par FinalDestination.resolve(@uri.to_s) car, vous ne le croirez pas, lorsqu’il est demandé en dehors de git, la redirection se fait dans l’autre sens ! Gitlab redirige en 302 https://gitlab.com/silentboatman/discourse-masonry-image-gallery.git/ vers https://gitlab.com/silentboatman/discourse-masonry-image-gallery
EDIT en utilisant GIT_CURL_VERBOSE=1, j’ai pu voir que Git ajoute info/refs?service=git-upload-pack lors du clonage, donc
GET /silentboatman/discourse-masonry-image-gallery/info/refs?service=git-upload-pack HTTP/2
va vers
location: https://gitlab.com/silentboatman/discourse-masonry-image-gallery.git/info/refs?service=git-upload-pack