Last laradev fix
This commit is contained in:
parent
a659e2846b
commit
96800f82e9
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ cd "/sites/{{project}}"
|
||||||
branches=`git ls-remote {{repo}} | grep -o -P "(?<=refs/heads/).*"`
|
branches=`git ls-remote {{repo}} | grep -o -P "(?<=refs/heads/).*"`
|
||||||
echo "Branches:<br/>" > /sites/{{project}}/index.php
|
echo "Branches:<br/>" > /sites/{{project}}/index.php
|
||||||
for branch in $branches; do
|
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
|
#clone new branch if necessary
|
||||||
if [ ! -d "$branch" ];then
|
if [ ! -d "$branch" ];then
|
||||||
git clone -b $branch {{repo}} "$branch"
|
git clone -b $branch {{repo}} "$branch"
|
||||||
|
|
Loading…
Add table
Reference in a new issue