Subject: | [Git::Commit] adds all dirty files it sees, rather than respecting 'allow_dirty' |
See the history in https://github.com/Perl-Toolchain-Gang/ExtUtils-Manifest/commits/master --
After the release, [Git::Commit] ran with the following config:
[Git::Commit / bumped $VERSION after release]
add_files_in = .
allow_dirty = Changes ; for now, there is no change here - it was committed in the release snapshot
allow_dirty_match = ^lib
commit_msg = After release: bump $VERSION and timestamp Changes
Which *should* have only committed the 'Changes' file and lib/*, but it also
managed to grab its own DZP-git.* scratch file and commit that as well!
It looks like the problem is on line 71, where the list of dirty files is used
as the basis for what to add - rather than the allow_dirty_* configs. (You
shouldn't need to get the list of dirty files at all - just try to add
everything referenced in allow_dirty_*.)