Höchstwahrscheinlich wegen der SSRF-Schutzmaßnahmen.
Gitlab leitet einen git clone für https://gitlab.com/silentboatman/discourse-masonry-image-gallery mit 301 auf https://gitlab.com/silentboatman/discourse-masonry-image-gallery.git/ (sic, endet mit .git/) um, aber git wird mit -c http.followRedirects=false aufgerufen, sodass es fehlschlägt.
Die Eingabe von https://gitlab.com/silentboatman/discourse-masonry-image-gallery.git/ als Repository-URL direkt funktioniert nicht, da dies durch FinalDestination.resolve(@uri.to_s) zurück zu https://gitlab.com/silentboatman/discourse-masonry-image-gallery geändert wird, weil, Sie werden es nicht glauben, wenn es außerhalb von git angefordert wird, die Umleitung in die andere Richtung geht! Gitlab leitet https://gitlab.com/silentboatman/discourse-masonry-image-gallery.git/ mit 302 auf https://gitlab.com/silentboatman/discourse-masonry-image-gallery um.
EDIT Mit GIT_CURL_VERBOSE=1 konnte ich sehen, dass Git info/refs?service=git-upload-pack beim Klonen anhängt, also
GET /silentboatman/discourse-masonry-image-gallery/info/refs?service=git-upload-pack HTTP/2
geht zu
location: https://gitlab.com/silentboatman/discourse-masonry-image-gallery.git/info/refs?service=git-upload-pack