.gitattributes Globs Don't Work In Nested Directories
benrob0329 opened this issue · comments
Version: Both 1.17.1 (Fedora 31 Repositories) and 1.20.0 (Master)
Example .gitattributes
:
**/src export-ignore
/**/*.sh export-ignore
/.luacheckrc export-ignore
/.lua-format export-ignore
/.gitignore export-ignore
/palette.png export-ignore
/CONTRIBUTING.md export-ignore
Repository: https://gitlab.com/benrob0329/ikea
Resulting archive includes src
directories, although the *.sh
files in the root directory have been cleaned up.
Was able to reproduce.
The script relies on git check-attr
to verify file attributes. However, attributes set for the directories are not propagated onto contained files.
@benrob0329 Please check the issue-78 branch.
That seems to work as expected.
Fixed in 1.21
Looks like it's actually only fixed for export-ignore
but still broken for export-subst
.
Example repo: https://gitlab.com/sztest/nodecore
The affected file should be in mods/nc_api/version.lua
.
export-subst
is not currently supported. Could you create a separate issue?