Subject: | Contents of Submodules not added |
There doesn't appear to be an obvious way to include submodules in a dist.
`git ls-files` does not traverse submodules by default.
For instance, on my dumpphases dist, git ls-files does this:
.gitignore
.gitmodules
.perltidyrc
Changes
README.mkdn
dist.ini
layout/self_structure.dot
layout/self_structure.png
lib/Dist/Zilla/App/Command/dumpphases.pm
lib/Dist/Zilla/dumpphases/Role/Theme.pm
lib/Dist/Zilla/dumpphases/Role/Theme/SimpleColor.pm
lib/Dist/Zilla/dumpphases/Theme/basic/blue.pm
lib/Dist/Zilla/dumpphases/Theme/basic/green.pm
lib/Dist/Zilla/dumpphases/Theme/basic/plain.pm
lib/Dist/Zilla/dumpphases/Theme/basic/red.pm
media
perlcritic.rc
weaver.ini
here, 'media' is a directory, and is not a symlink, and contains real files.
but the only way to traverse their contents is via:
git submodule foreach git ls-files
Entering 'media'
example_01.png
theme_basic_blue.png
theme_basic_green.png
theme_basic_plain.png
theme_basic_red.png
`git ls-files` does not traverse submodules by default.
For instance, on my dumpphases dist, git ls-files does this:
.gitignore
.gitmodules
.perltidyrc
Changes
README.mkdn
dist.ini
layout/self_structure.dot
layout/self_structure.png
lib/Dist/Zilla/App/Command/dumpphases.pm
lib/Dist/Zilla/dumpphases/Role/Theme.pm
lib/Dist/Zilla/dumpphases/Role/Theme/SimpleColor.pm
lib/Dist/Zilla/dumpphases/Theme/basic/blue.pm
lib/Dist/Zilla/dumpphases/Theme/basic/green.pm
lib/Dist/Zilla/dumpphases/Theme/basic/plain.pm
lib/Dist/Zilla/dumpphases/Theme/basic/red.pm
media
perlcritic.rc
weaver.ini
here, 'media' is a directory, and is not a symlink, and contains real files.
but the only way to traverse their contents is via:
git submodule foreach git ls-files
Entering 'media'
example_01.png
theme_basic_blue.png
theme_basic_green.png
theme_basic_plain.png
theme_basic_red.png