rlm@11: #!/bin/sh rlm@11: # rlm@11: # An example hook script to check the commit log message taken by rlm@11: # applypatch from an e-mail message. rlm@11: # rlm@11: # The hook should exit with non-zero status after issuing an rlm@11: # appropriate message if it wants to stop the commit. The hook is rlm@11: # allowed to edit the commit message file. rlm@11: # rlm@11: # To enable this hook, rename this file to "applypatch-msg". rlm@11: rlm@11: . git-sh-setup rlm@11: test -x "$GIT_DIR/hooks/commit-msg" && rlm@11: exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"} rlm@11: :