Last laradev fix

This commit is contained in:
Beth Parker 2020-07-29 22:08:12 -05:00
parent a659e2846b
commit c393123f7a

View file

@ -7,7 +7,7 @@ cd "/sites/{{project}}"
branches=`git ls-remote {{repo}} | grep -o -P "(?<=refs/heads/).*"`
echo "Branches:<br/>" > /sites/{{project}}/index.php
for branch in $branches; do
echo " <a href='$branch/public'>$branch<br/>" >> /sites/{{project}}/index.php
echo " <a href='$branch/public/'>$branch<br/>" >> /sites/{{project}}/index.php
#clone new branch if necessary
if [ ! -d "$branch" ];then
git clone -b $branch {{repo}} "$branch"