__templater___templater_echo "Setting up puppet..."
# Use the best approach
- #git clone $BOOSTRAP $PROJECT/puppet
- #git submodule add $BOOSTRAP puppet
- git remote add puppet $BOOTSTRAP
- git subtree add --prefix puppet $BOOTSTRAP master --squash
+ if [ -d '.git' ]; then
+ #git clone $BOOSTRAP $PROJECT/puppet
+ #git submodule add $BOOSTRAP puppet
+ git remote add puppet $BOOTSTRAP
+ git add .
+ git commit -m "Commiting changes before running git-subtree"
+ git subtree add --prefix puppet $BOOTSTRAP master --squash
+ else
+ git clone $BOOSTRAP puppet
+ fi
else
__templater_echo "Puppet already set"
fi