Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCan't pass multiple config values to clone or clone_from #824
Labels
Milestone
Comments
Indeed the current API doesn't allow to do that or even to workaround this issue. |
I'm fairly new to Python programming but I've implemented a fix so that one can pass config values to the clone and clone_from methods. I have some cleanup to do and need to do more testing but I think it works. |
I've created a PR #836 to address this issue. |
Closed via #836. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The clone command in git supports a --config parameter that can be repeated several times on the command line to set multiple config parameters. There is no why to call clone or clone_from with multiple config parameters. What I would like to do is:
Repo.clone_from(url, dir, config='submodule.repo1.update=none', config='submodule.repo2.update=checkout')
This can't be done because there are multiple keywords repeatedly passed to clone. You can't construct a dictionary for the same reason. One solution would be to allow for any string to be passed to to the underlying git process.