memfs
memfs copied to clipboard
The `git-opfs` demo throw a `TypeError` when use the `git.statusMatrix` method
- Start the
git-opfs
demo. - Append the following code after line 35 of the
main.ts
:
const statusMatrix = await git.statusMatrix({
fs,
dir: '/repo',
});
console.log('statusMatrix', statusMatrix);
- Open https://localhost:9876/.
- You will see the error in the console:
TypeError: Failed to execute 'getFileHandle' on 'FileSystemDirectoryHandle': Name is not allowed.
Related issue in
isomorphic-git
: https://github.com/isomorphic-git/isomorphic-git/issues/1839