giter8
giter8 copied to clipboard
.gitignore handling fails if .gitignore contains "var"
I have a g8 template with a .gitignore that includes the line var/. It turns out that if var is present anywhere in .gitignore, the template fails.
Here's a repro using a test template I made:
$ g8 https://github.com/mattolenik/g8-bug.g8 --name=test
Ignoring unrecognized parameter: name
Template applied in /Users/mattolenik/dev/g8bug/.
Here it is again, without specifying the name parameter:
g8 https://github.com/mattolenik/g8-bug.g8
Template applied in /Users/mattolenik/dev/g8bug/.
Notice that in both instances the template gets applied to ./ instead of ./test as would normally happen. If you remove the var line from the .gitignore, it works fine. Setting verbatim=.gitignore makes no difference. Other verbatim files work just fine. I haven't tested against other .*ignore files but if they're built with shared code they may broken, too.