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
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 thelg2example command.Reproduction steps
Expected behavior
libgit2is able to open the repo, even if it's a partial cloneActual behavior
libgit2fails to open the repository with the following error:Version of libgit2 (release number or SHA1)
1.7.2
Operating system(s) tested
Debian Unstable / Linux