You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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