memfs icon indicating copy to clipboard operation
memfs copied to clipboard

The `git-opfs` demo throw a `TypeError` when use the `git.statusMatrix` method

Open fengyuanchen opened this issue 1 year ago • 0 comments

  1. Start the git-opfs demo.
  2. Append the following code after line 35 of the main.ts:
const statusMatrix = await git.statusMatrix({
  fs,
  dir: '/repo',
});
console.log('statusMatrix', statusMatrix);
  1. Open https://localhost:9876/.
  2. 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

fengyuanchen avatar Nov 06 '23 11:11 fengyuanchen