As I understand, git relies on curl when doing http transfers (at least when using http, I'm sure ssh is different).
Given this, is there a way to make git pass specific flags to curl? e.g. I'd like to pass something like --limit-rate 100k to test a git push command under throttled conditions. Is this possible?
This is not an answer to your specific question, but it can help you to get the same results.
You can use netbrake, for instance:
$ netbrake --limit 100k git push
The benefit of netbrake
is that you can use it with any other command. The downside is that is Linux specific.
Another alternative, is to set a environment variable. I am not sure if git honour those variable (although other programs do). Check the connection options for Curl.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With