Skip to content

clone_repository() function not working #425

Closed

Description

@gmpuran

Example given in the docs for clone repository results in empty repository at mentioned path.

from pygit2 import clone_repository
repo_url = 'git://github.com/libgit2/pygit2.git'
repo_path = '/path/to/create/repository'
repo = clone_repository(repo_url, repo_path) # Clones a non-bare repository

Code execution doesn't yield any errors, any clues?

Activity

  1. pypingou commented on Sep 13, 2014

    @pypingou

    Which version are you using?

  2. gmpuran commented on Sep 13, 2014

    @gmpuran
    Author

    Hi pypingou,

    pygit2 - v0.21.2
    libgit2 - v0.21.0

  3. carlosmn commented on Sep 13, 2014

    @carlosmn
    Member

    It looks to be down to us not overriding the default checkout strategy, which is a no-op.

  4. carlosmn commented on Sep 13, 2014

    @carlosmn
    Member

    Or rather, by not initializing with libgit2's defaults, which makes it checkout by default.

  5. added a commit that references this issue on Sep 13, 2014
    c5f8d20
  6. carlosmn commented on Sep 13, 2014

    @carlosmn
    Member

    FTR the repository isn't empty, just its worktree.

  7. added a commit that references this issue on Sep 13, 2014
    63377aa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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