[Support for shallow cloning was merged into libgit2](https://github.com/libgit2/libgit2/pull/6396) a few months ago.