diff --git a/states/roles/maintain/laradev/git_branches.sh b/states/roles/maintain/laradev/git_branches.sh index 1405c0d..0f98bac 100644 --- a/states/roles/maintain/laradev/git_branches.sh +++ b/states/roles/maintain/laradev/git_branches.sh @@ -7,7 +7,7 @@ cd "/sites/{{project}}" branches=`git ls-remote {{repo}} | grep -o -P "(?<=refs/heads/).*"` echo "Branches:
" > /sites/{{project}}/index.php for branch in $branches; do -echo " $branch
" >> /sites/{{project}}/index.php +echo "
$branch
" >> /sites/{{project}}/index.php #clone new branch if necessary if [ ! -d "$branch" ];then git clone -b $branch {{repo}} "$branch"