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

[BUG] wrong file patterns created from .gitignore entries #504

Closed
3 tasks done
nerdbeere opened this issue Nov 7, 2022 · 1 comment · Fixed by #507
Closed
3 tasks done

[BUG] wrong file patterns created from .gitignore entries #504

nerdbeere opened this issue Nov 7, 2022 · 1 comment · Fixed by #507
Labels
bug Something isn't working

Comments

@nerdbeere
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Does this issue exist in the latest version?

  • I'm using the latest release

Describe the bug?

The file patterns generated from .gitignore entries are generated incorrectly.

An entry with /foo becomes !/path/to/work/dir/**/foo which incorrectly matches all directories named foo instead of matching only the root-level

To Reproduce

  1. create .gitignore entry starting with /
  2. turn on debug output and look at output of generated file patterns

What OS are you seeing the problem on?

ubuntu-latest or ubuntu-20.04

Expected behavior?

Correct file pattern in the example would be !/path/to/work/dir/foo

Relevant log output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@nerdbeere nerdbeere added the bug Something isn't working label Nov 7, 2022
@github-actions
Copy link

github-actions bot commented Nov 7, 2022

Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant