Fix clean not respecting defaults
commit81f0d7495518a1fe441343024f2320c95eff86b4
authorAnish Athalye <me@anishathalye.com>
Tue, 31 Dec 2019 19:47:32 +0000 (31 14:47 -0500)
committerAnish Athalye <me@anishathalye.com>
Tue, 31 Dec 2019 19:47:32 +0000 (31 14:47 -0500)
treedb8b2a0dcc664f660cbc0898efb7956eeb130408
parenta7bfce3e231d8ce83a7425a13bef692f5162b5be
Fix clean not respecting defaults

Previously, clean read the defaults once, and then it updated the
setting for each entry it read. This resulted in the defaults being
clobbered and then not being respected for subsequent entries. This
patch fixes the issue by re-reading the defaults before processing each
item.

The other plugins (link, shell) do not have this problem.
dotbot/plugins/clean.py
test/tests/clean-default.bash [new file with mode: 0644]