Projects that come as "complete" project (WP core including all files), can be used as well as /wp-content-only repos. More often than one wants to admit, we are taking "all in" repos over. Those repos do not contain only single themes or plugins, but everything from WP core to mu-plugins and even an uploads folder. The easiest way to deal with such repos seems to be a Git Subtree split out:
As it currently stands – in code – it is not possible to use a Git subtree split out as project:
if [ ! -z "$git_repo" ]; then
git clone --recursive "$git_repo" $web_root/wp-content
fi
Steps to reproduce
Set up VVV
Add VV
Call vv create
Add a Git Subtree split out as repo
Git repo to clone as wp-content (leave blank to skip): -b my-wp-content-subtree-branch --single-branch git@github.com:username/reponame.git
How to change
The easiest and most obvious step would be to split the command in multiple commands, so the $git_repo var is not equal to a branch, while the master could be the default branch. Bonus: This might also help to pull down development branches that are used for testing or staging environments where only squashed commits get merged to master to allow for a tagged release-history for production.
Expected functionality
Projects that come as "complete" project (WP core including all files), can be used as well as
/wp-content
-only repos. More often than one wants to admit, we are taking "all in" repos over. Those repos do not contain only single themes or plugins, but everything from WP core to mu-plugins and even anuploads
folder. The easiest way to deal with such repos seems to be a Git Subtree split out:Not working/ Missing functionality
As it currently stands – in code – it is not possible to use a Git subtree split out as project:
Steps to reproduce
vv create
Add a Git Subtree split out as repo
How to change
The easiest and most obvious step would be to split the command in multiple commands, so the
$git_repo
var is not equal to a branch, while themaster
could be the default branch. Bonus: This might also help to pull downdevelopment
branches that are used for testing or staging environments where only squashed commits get merged tomaster
to allow for a tagged release-history for production.