X-Git-Url: https://git.ao2.it/drupal-init-tools.git/blobdiff_plain/71fe26eecf083217461e8f4f1bde959a10eb7466..0ffd9f77472a04d5c7166e06d8148e178888592f:/libexec/new.sh diff --git a/libexec/new.sh b/libexec/new.sh index bc88c00..a54abdd 100755 --- a/libexec/new.sh +++ b/libexec/new.sh @@ -60,7 +60,7 @@ command -v git &> /dev/null || { echo "Aborting, 'git' not available." 1>&2; exi echo "Creating a new Drupal project..." composer create-project drupal-composer/drupal-project:8.x-dev@dev "$DESTDIR" --keep-vcs --stability dev --no-interaction -pushd "$DESTDIR" +pushd "$DESTDIR" > /dev/null git remote rename origin upstream git checkout -b master @@ -104,12 +104,23 @@ cat > bootstrap.conf < .gitignore <> .gitignore < /dev/null