This PR adds support for a branch to the init command.
While running tric init event-tickets is still possible, it will use, as it did before, the default repository branch.
This PR allows running the init command, and with it the composer and npm tasks, directly during init phase with
an API like this:
tric init event-tickets release/G20.04
The command will try to change the branch locally first, and then will try to pull from each plugin repository remote.
The command is recursing on sub-modules too to make sure the composer and npm commands will build on the correct
version of common if the plugins contains it.
fixes #45
This PR adds support for a branch to the
init
command.While running
tric init event-tickets
is still possible, it will use, as it did before, the default repository branch.This PR allows running the
init
command, and with it thecomposer
andnpm
tasks, directly during init phase with an API like this:The command will try to change the branch locally first, and then will try to pull from each plugin repository remote.
The command is recursing on sub-modules too to make sure the
composer
andnpm
commands will build on the correct version ofcommon
if the plugins contains it.Screencap