Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

any way to set sslVerify false on issue any git command #1599

Unanswered
cmingxu asked this question in Q&A
Discussion options

Hi team, I am new to gitpython, and I am looking a way to disable sslVerify upon issue a git command, don't know how to pass parameters, thanks

You must be logged in to vote

Replies: 1 comment

Comment options

You probably want to change the GIT_SSH_COMMAND to your own script to control how ssh is invoked, as described in the docs.

Here is an example to show the general idea:

ssh_cmd = 'ssh -i id_deployment_key'
with repo.git.custom_environment(GIT_SSH_COMMAND=ssh_cmd):
 repo.remotes.origin.fetch()
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1598 on May 31, 2023 14:38.

AltStyle によって変換されたページ (->オリジナル) /