You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to use pygit2.clone_repository() with an HTTPS proxy?
I thought maybe I could use the remote argument to inject a Remote object where the relevant methods were wrapped to have a proxy argument but I didn't have any success.
I've been able to use init_repository(), create and monkey patch an origin Remote to wrap its methods as above, then do a fetch and checkout, but I'm not sure if this is equivalent to clone_repository() and it doesn't feel natural.
Just want to check if I'm making this way too hard!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to use
pygit2.clone_repository()
with an HTTPS proxy?I thought maybe I could use the
remote
argument to inject a Remote object where the relevant methods were wrapped to have aproxy
argument but I didn't have any success.I've been able to use
init_repository()
, create and monkey patch an origin Remote to wrap its methods as above, then do a fetch and checkout, but I'm not sure if this is equivalent toclone_repository()
and it doesn't feel natural.Just want to check if I'm making this way too hard!
Beta Was this translation helpful? Give feedback.
All reactions