blob: 8b2a2fe84feaeaba56953d6d4d0d649b3cf755eb [file] [log] [blame]
Junio C Hamano4426ac72005-08-19 13:53:13 -07001#!/bin/sh
2#
3# An example hook script to check the commit log message taken by
4# applypatch from an e-mail message.
5#
6# The hook should exit with non-zero status after issuing an
7# appropriate message if it wants to stop the commit. The hook is
8# allowed to edit the commit message file.
9#
Junio C Hamanof98f8cb2008-06-24 18:45:21 -070010# To enable this hook, rename this file to "applypatch-msg".
Junio C Hamano4426ac72005-08-19 13:53:13 -070011
Junio C Hamanoa2047562006-02-26 15:16:41 -080012. git-sh-setup
Junio C Hamano4426ac72005-08-19 13:53:13 -070013test -x "$GIT_DIR/hooks/commit-msg" &&
14 exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"}
15: