-
|
I know that one can override a default http client for git operations by doing Normally this is not a problem but what if I want to have two differently configured Is there some way to declare client override per one git operation (like |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
@Madoxen What exactly do you need the different clients to do? One way around this could be to simply register arbitrary schemes: e.g. |
Beta Was this translation helpful? Give feedback.
-
|
I probably could do that, but this involves rewriting the scheme later in the client, most probably in round tripper. This seems fragile to me. I would really like to pass a custom client as a parameter to remote or a function that needs it, instead of relying on Anyways thanks for help, if there is any other way to do this please let me know. |
Beta Was this translation helpful? Give feedback.
@Madoxen What exactly do you need the different clients to do? One way around this could be to simply register arbitrary schemes: e.g.
unsafe://bound to a custom http client that has TLS verification disabled for example.