Skip to content

Mismatch of signature and example in docs #1230

@JanczarKurek

Description

@JanczarKurek

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):

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