Gitlab config problems / trailing slash in clone urls

Hi,

the gitlab webserver for cloning the repository seems to have this configuration problem https://gitlab.com/gitlab-org/gitlab-ce/issues/1195 .

To reproduce:

$ git clone https://tt-rss.org/fox/tt-rss.git
# clone works
$ git ls-remote origin
fatal: unable to access 'https://tt-rss.org/fox/tt-rss.git/': The requested URL returned error: 503

apparently, git adds a trailing slash when using ls-remote

https://discourse.tt-rss.org/t/rate-limiting-for-some-git-related-requests/32

Ok, thanks, then this might be the cause. I am using ansible to deploy tt-rss on my server and apparently, it does a ls-remote before checking the desired commit and a few other requests too. So maybe I am running into the rate limiter here … not sure how to implement rate limiting in the git ansible module though …

yeah, I’ve got a script that I run once a week or so, and it does a git pull for ttrss, updates a few other plugins and things, and then does a git pull for a plugin that Fox maintains… the second pull fails now… :sigh:

For now i have a wrapper around git that works, but slows down the ansible run

#!/bin/sh

/bin/sleep 60
/usr/bin/git $@

the limit (currently) is 2 requests per minute so you can reduce this timeout somewhat, i guess