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

error parsing glob '!**.sha1': invalid use of **; must be one path component #507

Closed
Yggdroot opened this issue Jun 7, 2017 · 5 comments

Comments

@Yggdroot
Copy link

Yggdroot commented Jun 7, 2017

There is a .gitignore in the source of chromium:
$ cat .gitignore

*/*
!**.sha1

If run rg as this: rg --files, the error ./.gitignore: line 2: error parsing glob '!**.sha1': invalid use of **; must be one path component is printed.

@BurntSushi
Copy link
Owner

What is the expected behavior? The error message seems pretty clear. In any case, this is a duplicate of #373.

@Yggdroot
Copy link
Author

Yggdroot commented Jun 7, 2017

Oh, sorry, did not notice it.

@ChildishGiant
Copy link

image
I'm getting this even with no uses of ** in my gitignore. Even with no gitignore at all.

@BurntSushi
Copy link
Owner

@ChildishGiant Sorry, but your comment is not actionable. Please open a new issue and follow the instructions listed in the issue template. Please provide a reproducible example and include output using the --debug flag.

@ChildishGiant
Copy link

Turns out that an extension had generated some invalid files.exclude workspace settings. Sorry for the hassle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants