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