Created
November 25, 2013 03:01
-
-
Save stephencroberts/7635615 to your computer and use it in GitHub Desktop.
Updates the local database to reflect which branch was checked out
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 | |
# If checking out a branch | |
if [ $3 -eq 1 ]; then | |
# Get the new branch | |
branch=`git rev-parse --abbrev-ref HEAD` | |
# Run dev site setup | |
php -f setup.php "$branch" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment