Created
January 11, 2011 20:59
-
-
Save himynameisjonas/775131 to your computer and use it in GitHub Desktop.
post-checkout git-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
#!/bin/bash | |
oldrev="$1" | |
newrev="$2" | |
if [[ $3 == "1" ]]; then | |
diffresult=$(git diff "$oldrev" "$newrev" -- .rvmrc) | |
if [[ $diffresult != "" ]]; then | |
msg=" \n Don't forget to reload your .rvmrc! \n " | |
echo -e "\033[41;37m$msg\033[0m" | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment