Last active
December 11, 2015 23:19
-
-
Save kkumler/492f6a2045292995ddb5 to your computer and use it in GitHub Desktop.
git post-checkout hook to stop spring when checking out a new branch.
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/bash | |
PREV_HEAD=$1 | |
NEW_HEAD=$2 | |
BRANCH_CHECKOUT=$3 | |
if [[ $BRANCH_CHECKOUT == 1 ]]; then | |
# Show when it's been stopped, but not that it's already stopped. | |
bin/spring stop | grep --color=never stopped | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment