-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
incorrect gitignore behaviour #649
Comments
That is a strange Anyhow, regardless of how strange a gitignore it is, looks like the issue is with the conversion of |
When processing a rule that ends in a slash, we strip it off and set the `is_only_dir` flag. We then apply the rule that paths that aren't absolute should be given an implicit `**/` prefix, while avoiding adding that prefix if it already exists. However, this means that we miss the case in which we had already stripped off the trailing slash and set `is_only_dir`. Correct this by also explicitly checking for that case. Fixes BurntSushi#649
This should be fixed by PR #652, but that's currently held up by an odd, seemingly unrelated test failure on the Mac build. Should be merged once we've sorted that out. |
When processing a rule that ends in a slash, we strip it off and set the `is_only_dir` flag. We then apply the rule that paths that aren't absolute should be given an implicit `**/` prefix, while avoiding adding that prefix if it already exists. However, this means that we miss the case in which we had already stripped off the trailing slash and set `is_only_dir`. Correct this by also explicitly checking for that case. Fixes #649
Steps
git clone https://github.com/nim-lang/Nim.git
rg uint64
. It gives no results which is incorrect. Silver searcher gives correct resultsgit check-ignore lib\system.nim
to verify git doesn't ignore the filerg --debug
output here. Lib folder is being ignoredUsing 0.7.1 release from here
The text was updated successfully, but these errors were encountered: