Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cspell-gitignore/findRepoRoot should work with URLs #5668

Open
Jason3S opened this issue May 23, 2024 · 0 comments
Open

cspell-gitignore/findRepoRoot should work with URLs #5668

Jason3S opened this issue May 23, 2024 · 0 comments
Labels
task A task to be done.

Comments

@Jason3S
Copy link
Collaborator

Jason3S commented May 23, 2024

cspell-gitignore doesn't currently support URLs.

Example:

    async function findRepoRoot(directory: string): Promise<string | undefined> {
        const found = await findUp('.git', { cwd: directory, type: 'directory' });
        if (!found) return undefined;
        return path.dirname(found);
    }
@Jason3S Jason3S added the task A task to be done. label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task A task to be done.
Projects
None yet
Development

No branches or pull requests

1 participant