From 169381bbce998807c119f291d69b8ae1d8fb5785 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Wed, 7 Nov 2007 17:19:09 -0800 Subject: added some testing files and got some real tests to run --- tests/files/working.git/hooks/applypatch-msg | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/files/working.git/hooks/applypatch-msg (limited to 'tests/files/working.git/hooks/applypatch-msg') diff --git a/tests/files/working.git/hooks/applypatch-msg b/tests/files/working.git/hooks/applypatch-msg new file mode 100644 index 0000000..02de1ef --- /dev/null +++ b/tests/files/working.git/hooks/applypatch-msg @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, make this file executable. + +. git-sh-setup +test -x "$GIT_DIR/hooks/commit-msg" && + exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"} +: -- cgit