Skip to content

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

Description

@fengyuanchen
  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: isomorphic-git/isomorphic-git#1839

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions