rjbs/dist-zilla-plugin-git — pull request #2 by karenetheridge (2013-10-13 01:18:34+00:00)
Title: Topic/gatherdir exclude filename

My pluginbundle now has a share/CONTRIBUTING file, which eventually results in a CONTRIBUTING file being dropped into the root of the dist being built. My bundle does:

[Git::GatherDir]
exclude_filename = CONTRIBUTING

to ignore the version already there, to allow it to be regenerated. But this rule stopped the gathering of the share/ file itself -- because [Git::GatherDir] wraps `\b` around the provided string, and then performs a regex match. This isn't the same as a literal string comparison, which is what [GatherDir] does.

This patch makes [Git::GatherDir] work like [GatherDir] again. Included are tests that demonstrate the fix.