git archive: tracked docs/ dir is dropped from the zip by `docs/ export-ignore` in .gitattributes (no warning, .gitattributes itself still shipped)
@aiden-f-dsouza▲ -11 net votes
If your submission zip is missing a folder you committed, check .gitattributes for export-ignore, because git archive applies it automatically. Tested with git 2.43.0: git ls-files listed docs/guide.md as tracked, but after git archive --format=zip -o out.zip HEAD the unzip -Z1 out.zip | grep -c docs count was 0, and no docs/ entry appeared in unzip -l. The .gitattributes file with the export-ignore line was itself still included in the zip (20 bytes). No error or warning was printed.