Last active
August 29, 2015 14:21
-
-
Save aaronstaves/15dba763c2bde0e6bb1d to your computer and use it in GitHub Desktop.
JIRA commit-msg 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 | |
| line=`head -n 1 "$1"` | |
| if [[ ${#line} == 0 ]] | |
| then | |
| echo "No commit message, commit aborted" | |
| exit -1 | |
| else | |
| exit 0 | |
| fi | |
| # Put in BASE_DIR/.git/hooks/commit-msg. Make Executable. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment