Last active
August 29, 2015 13:56
-
-
Save andrewwheal/9344159 to your computer and use it in GitHub Desktop.
Git post-receive hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $(basename $(pwd)) == ".git" ]; then | |
cd .. | |
export GIT_DIR=.git | |
fi | |
git checkout $(git rev-parse master) | |
git reset --hard HEAD -- | |
git submodule update --init --recursive | |
ant | |
composer install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment