hercules-ci / gitignore.nix

Nix functions for filtering local git sources
The Unlicense
245 stars 20 forks source link

Directory with only ignored contents stays present #57

Closed Minnozz closed 1 year ago

Minnozz commented 2 years ago

In git, when a directory has only ignored contents, the entire (empty) directory does not exist because directories are not their own entities in git.

With gitignore.nix, the empty directory stays present, which can cause a difference in the input even though git shows no changes.

Minnozz commented 2 years ago

Updated the description.

ivb-supercede commented 2 years ago

Great issue and example! Just been bitten by this as well.

roberth commented 1 year ago

Fixed in #64 . Thanks for reporting and for the reproducer!