Last active
December 21, 2015 18:29
-
-
Save foxxyz/6347587 to your computer and use it in GitHub Desktop.
Post-receive git hook for deploying remote repositories with a working tree.
This file contains 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
#!/bin/sh | |
cd .. | |
GIT_DIR='.git' | |
git stash | |
umask 002 && git reset --hard && git submodule update --recursive | |
git stash pop | |
# Run compass to recompile | |
bash util/recompile_sass.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the repository is not a bare repository, make sure to set
receive.denycurrentbranch
toignore
or git will throw up a bunch of warnings when pushing to the remote server:git config receive.denycurrentbranch ignore