-
-
Save jasonchester/e548fc05023c86e7156fdc80d08cd7a8 to your computer and use it in GitHub Desktop.
Git hook to replace a "wtc" commit message with a random whatthecommit.com message.
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 | |
comm_msg="$(cat $1)" | |
if [ "$comm_msg" = "wtc" ]; then | |
curl -L whatthecommit.com/index.txt > $1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment