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

CommentFileSizeAuthor
submodule.patch2.07 KBmfb

Comments

electblake’s picture

bump! :D (I mean subscribing)

dmitrig01’s picture

Status: Needs review » Fixed

Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

dman’s picture

To 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.

  projects[drupal][download][submodule][] = init

I tried

  projects[drupal][download][submodule] = TRUE

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.