Skip to content

Passing checkout_branch to pygit2.clone_repository() triggers a fatal error #399

Description

@djmattyg007

Whenever I try and clone any repository with something like the following command:

repo = pygit2.clone_repository(url="file:///srv/samba/files/programming/cli/modman-test", path="https://github.com/tmp/modman")

The entire contents of the repo are staged for deletion.

I tried to get around this by passing 'checkout_branch="master"' to the clone_repository() function (as this fixes the issue just fine when I run 'git checkout master' from my shell), but that triggers a fatal error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions