.gitattributes Globs Don't Work In Nested Directories
See original GitHub issueVersion: 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.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
git - Why does glob pattern with double asterisk not match ...
I thought that ** will match any number of subdirectories; why is this not working? I'm running Git 1.8 in Bash 4.2 on...
Read more >Glob patterns with subdirectories whose parent directory does ...
I have a repro for this issue with the glob package. It happens if you have an explicit subdir listed whos parent dir...
Read more >gitattributes Documentation - Git
This attribute enables and controls end-of-line normalization. When a text file is normalized, its line endings are converted to LF in the repository....
Read more >Ubuntu Manpage: gitattributes - defining attributes per path
gitattributes is from the path in question, the lower its precedence). Finally global and system-wide files are considered (they have the lowest precedence)....
Read more >gitattributes(5): defining attribs per path - Linux man page
gitattributes file in the same directory as the path in question, and its parent directories up to the toplevel of the work tree...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

export-substis not currently supported. Could you create a separate issue?Looks like it’s actually only fixed for
export-ignorebut still broken forexport-subst.Example repo: https://gitlab.com/sztest/nodecore
The affected file should be in
mods/nc_api/version.lua.