Add more tests according to gitignore#4166
Conversation
|
Two issues found.
|
|
@karajan1001 Sorry for the delay. This is outstanding work! Thank you so much for looking into this!
Should we report it to pathspec and wait for the solution on their side? Or how do you think we should tackle it?
Nice catch! So that one is solved and we are doing it the same way gitignore does it, right? |
pared
left a comment
There was a problem hiding this comment.
One minor thingy. Great idea with citing the .gitignore documentation. Makes it much more understandable.
|
Seems like builds are failing. |
@efiop
|
@karajan1001 Sounds great! 🙏 So maybe let's remove or comment-out that particular test case for now, so we could merge? |
There is still something wrong with triple asterisks, According to the document.
What the result from my computer shows that triple asterisks act like double ones. Seems that this because the document is changing all the time, and in a previous version
Seems that And I found another problem. |
|
Checked latest git master (2.26.0-rc1) and @karajan1001 is right, behavior of x/* is different that explicitly stated in gitignore docs. @karajan1001 that seems like a bug and potential contribution opportunity. As to current build, I think we should comment out failing ones and wait till it gets done on PathSpec side. As to triple asterisk I would just leave it. If some will ever come to us with valid use case of triple asterisk other than 'match all', then we can consider it. There is no point in blindly following git docs. |
efiop
left a comment
There was a problem hiding this comment.
Outstanding! Thank you so much @karajan1001 ! 🙏






fix #4103
❗ I have followed the Contributing to DVC checklist.
📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.
❌ I will check DeepSource, CodeClimate, and other sanity checks below. (We consider them recommendatory and don't expect everything to be addressed. Please fix things that actually improve code or fix bugs.)
Thank you for the contribution - we'll try to review it as soon as possible. 🙏