Skip to content

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

Description

@dekhaus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions