question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.gitattributes Globs Don't Work In Nested Directories

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Kentzocommented, Feb 15, 2020

export-subst is not currently supported. Could you create a separate issue?

0reactions
Warr1024commented, Feb 15, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found