Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error: not able to open repository “unsupported extension name extensions.partialclone”. #6880

@ao2

Description

@ao2

libgit2 does not seem to handle partial clones like for examples the repositories from an AOSP tree.

I experienced the issue both with gitg which used libgit2, and with the lg2 example command.

Reproduction steps

$ cd /tmp
$ mkdir AOSP
$ cd AOSP
$ repo init -u https://android.googlesource.com/platform/manifest -b main
Downloading Repo source from https://gerrit.googlesource.com/git-repo
repo has been initialized in /tmp/AOSP
$ repo sync -c -j8 --optimize --no-tags
$ cd external/virglrenderer
$ /tmp/examples/build/lg2 status
Unable to open repository '%s' '.' [-1] - unsupported extension name extensions.partialclone
$ gitg 
Error: not able to open repository “unsupported extension name extensions.partialclone”.

Expected behavior

libgit2 is able to open the repo, even if it's a partial clone

Actual behavior

libgit2 fails to open the repository with the following error:

Unable to open repository '%s' '.' [-1] - unsupported extension name extensions.partialclone

Version of libgit2 (release number or SHA1)

1.7.2

Operating system(s) tested

Debian Unstable / Linux

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