-
Notifications
You must be signed in to change notification settings - Fork 225
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
giter8 seems ignore hidden folder in src
layout
#401
Comments
I would like to relight this issue to know an answer. Thanks :) |
Me too. But I have a workaround. Define the hidden folder like: Now add to the
|
After more than a week of investigations, I've been able to shrink down the problem. I wrote this test, that is replicating the behaviour of one of my giter8 templates in which I have a it should "exclude hidden directories if a double asterisk rule is present" in {
val rule = new FastIgnoreRule("**/*/target/")
assert(rule.isMatch(".github/", true))
assert(rule.getResult())
} Incredibly that test passes, and that means that according to the rule
So, to the best of my understanding, the rule After a lot of tests I might say that the behaviour of git itself matches this interpretation, while Last but not least: git itself doesn't seem to care a lot about directories (in fact there's a famous trick to add a PROBABLY, and I repeat probably, the thing can be solved by iterating just on files and trying to match the rules against them relying on the third parameter of public boolean isMatch(String path, boolean directory, boolean pathMatch) that is documented as Now, for what concerns a workaround, since a while ago the support for the file I promise that I'll add @chenrui333 @AlvaroCaste @pme123 I'll love to examine your templates in order to debug whether the "hidden folders" problem is related to the content of the |
I was trying to introduce the
.github/
into my company's template repo, I found it got ignored.I wonder if that is a bug or there is some workaround. Thanks!
The text was updated successfully, but these errors were encountered: