blob: a5d7b84a673458d14d9aab082183a1968c2c7492 [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
Nguyễn Thái Ngọc Duyb849b952014-11-30 15:24:38 +070013commitmsg="$(git rev-parse --git-path hooks/commit-msg)"
14test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"}
Junio C Hamano4426ac72005-08-19 13:53:13 -070015: