Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mismatch of signature and example in docs #1230

Open
JanczarKurek opened this issue Aug 14, 2023 · 0 comments
Open

Mismatch of signature and example in docs #1230

JanczarKurek opened this issue Aug 14, 2023 · 0 comments

Comments

@JanczarKurek
Copy link

JanczarKurek commented Aug 14, 2023

As of now the documentation states in an example that a branch can be created via

repo.branches.local.crate("name-for-a-branch")

see

>>> new_branch = repo.branches.local.create('new-branch')

but the signature of actual create function is different and requires specifying a commit
def create(self, name: str, commit, force=False):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant