Apparently the Git sparseCheckout setting is ignored by libgit2.