gitpython-developers / GitPython

GitPython is a python library used to interact with Git repositories.

Home Page:http://gitpython.readthedocs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for --config <key>=<value> Git option

dekhaus opened this issue · comments

Hi

Its my understanding that support for the --config option was adding to GitPython in this PR ( #836 )

I'd like to use GitPython to perform a 'clone_from' command and have that command be passed a = config option. Based on what I've read in the notes for the aforementioned PR (836) - this option is supported.

Assuming it is supported - I have no idea what the syntax is. Here's an example of the complete Git command I want to emulate ...

git clone -c http.extraHeader='Authorization: Bearer replace_with_some_token' https://replace_with_git_url.git

How would the above git command be replicated using GitPython ...

git.Repo.clone_from( ? )

?

Thanks
Dave