blob: 4142082bcb939bbc17985a69ba748491ac6b62a5 [file] [log] [blame]
Junio C Hamano4426ac72005-08-19 13:53:13 -07001#!/bin/sh
2#
3# An example hook script to verify what is about to be committed
4# by 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.
8#
Junio C Hamanof98f8cb2008-06-24 18:45:21 -07009# To enable this hook, rename this file to "pre-applypatch".
Junio C Hamano4426ac72005-08-19 13:53:13 -070010
Junio C Hamanoa2047562006-02-26 15:16:41 -080011. git-sh-setup
Nguyễn Thái Ngọc Duyb849b952014-11-30 15:24:38 +070012precommit="$(git rev-parse --git-path hooks/pre-commit)"
13test -x "$precommit" && exec "$precommit" ${1+"$@"}
Junio C Hamano4426ac72005-08-19 13:53:13 -070014: