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

[ignore] Fix matched_path_or_any_parents() for patterns ending in slash #554

Merged
merged 1 commit into from
Jul 13, 2017

Conversation

behnam
Copy link
Contributor

@behnam behnam commented Jul 13, 2017

In matched_path_or_any_parents() implementation, we missed the point
that when we start walking up the tree, we have to set is_dir to
true, so path ROOT/a/b/c matches pattern /a/, although the
original path is not a dir.

In `matched_path_or_any_parents()` implementation, we missed the point
that when we start walking up the tree, we have to set `is_dir` to
`true`, so path `ROOT/a/b/c` matches pattern `/a/`, although the
original path is not a dir.
@behnam
Copy link
Contributor Author

behnam commented Jul 13, 2017

I didn't test this diff locally (because I did this on a different machine than the Cargo patch) and the bug was revealed in my tests for the cargo patch. Fortunately, it doesn't involve API breaking changes.

Sorry for making more release work for you, @BurntSushi, and thanks in advance. :)

@BurntSushi BurntSushi merged commit 0668c74 into BurntSushi:master Jul 13, 2017
@BurntSushi
Copy link
Owner

Nice find! If you do need to make a breaking API change, then I expect we could get away with a yank. :)

I'll cut a release when I'm at my computer next.

@behnam behnam deleted the ignore branch July 13, 2017 12:54
@behnam
Copy link
Contributor Author

behnam commented Jul 17, 2017

Just a friendly reminder to publish ignore:0.2.2, as the current one is buggy. :)

@BurntSushi
Copy link
Owner

Ah right, I was on vacation and forgot. ignore 0.2.2 should now be on crates.io!

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

Successfully merging this pull request may close these issues.

2 participants