It would be nice if makefiles could specify a git submodule command to run after a git repository is cloned.
I'm not sure what the best syntax would be, it depends what type of submodule commands might be needed. With the attached patch, for git submodule update --init the makefile syntax would be projects[example][download][submodule][] = init
| Comment | File | Size | Author |
|---|---|---|---|
| submodule.patch | 2.07 KB | mfb |
Comments
Comment #1
electblake commentedbump! :D (I mean subscribing)
Comment #2
dmitrig01 commentedThanks.
Comment #4
dman commentedTo re-iterate (I see it now in the OP, but missed it first.) as there seem to be no docs for this either then or now in the examples/example.make file.
I tried
which is totally wrong due to my ignorance, but there was nowhere in the docs that told me the right way until I debugged the actual code manually.
I'm posting in this old ticket as it's the only useful place that searching for "drush make submodule" takes us to.