#50708: Base should support fetching git submodules (git submodule update) ---------------------+-------------------------------- Reporter: mojca@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.4 Keywords: | Port: ---------------------+-------------------------------- If ports fetched via git (or via the github portgroup) have submodules, those submodules are left out (and should usually be fetched via `git submodule update`). It would be great if the base would provide a straightforward way to also fetch the submodules automatically. Examples: `multimarkdown` and `git-flow` ports use {{{ # https://github.com/fletcher/MultiMarkdown-4/issues/7 fetch.type git post-fetch { system -W ${worksrcpath} "git submodule update --init" } }}} and {{{ post-fetch { # Does the github portgroup support 'clone --recursive'? # This will be removed once the python re-write is complete. system -W ${worksrcpath} "git submodule update --init" } }}} [https://github.com/RJVB/macstrop/blob/master/devel/qt5-creator/Portfile René] used an even more complex approach. See also #16373. -- Ticket URL: <https://trac.macports.org/ticket/50708> MacPorts <https://www.macports.org/> Ports system for OS X