Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Optional wait between invokations of git #335

Open
carlsmedstad opened this issue Apr 18, 2022 · 0 comments
Open

Feature request: Optional wait between invokations of git #335

carlsmedstad opened this issue Apr 18, 2022 · 0 comments

Comments

@carlsmedstad
Copy link

Hey,

Many sites hosting git repositories have some kind of DOS protection that will reset the connection if to many request are sent in a short amount of time. This makes it hard to update many repositories at once as one will face the following error:

$ ghq get -u *
...
       git submodule update --init --recursive
    update /home/carsme/ghq/github.com/cmake-lint/cmake-lint
       git pull --ff-only
kex_exchange_identification: read: Connection reset by peer
Connection reset by 140.82.121.3 port 22
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
     error failed to get "cmake-lint/cmake-lint": /bin/git: exit status 1

One solution to this would be to add a --sleep flag to the get command that would allow the user to specify a number of seconds to sleep between updates of repositories.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant