Code would look something like:
import * as git from 'isomorphic-git';
import http from 'isomorphic-git/http/web';
import LightningFS from '@isomorphic-git/lightning-fs';
const fs = new LightningFS('repos');
await git.clone({
fs,
http,
dir: '/repo',
url: 'https://gitlab.com/group/project.git',
singleBranch: true,
depth: 1,
noCheckout: true,
});
const files = await git.listFiles({
fs,
dir: '/repo',
});
Code would look something like: