From 100e762a60a691a4978434f1cd5532e19cad39fc Mon Sep 17 00:00:00 2001 From: Ben Walton Date: Sat, 20 Mar 2010 10:48:09 -0400 Subject: Modernize git calling conventions in hook templates The hook templates were still using/referencing 'git-foo' instead of 'git foo.' This patch updates the sample hooks to use the modern conventions instead. Signed-off-by: Ben Walton Signed-off-by: Junio C Hamano --- templates/hooks--pre-commit.sample | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/hooks--pre-commit.sample') diff --git a/templates/hooks--pre-commit.sample b/templates/hooks--pre-commit.sample index 439eefda51..b187c4bb1f 100755 --- a/templates/hooks--pre-commit.sample +++ b/templates/hooks--pre-commit.sample @@ -1,13 +1,13 @@ #!/bin/sh # # An example hook script to verify what is about to be committed. -# Called by git-commit with no arguments. The hook should +# Called by "git commit" with no arguments. The hook should # exit with non-zero status after issuing an appropriate message if # it wants to stop the commit. # # To enable this hook, rename this file to "pre-commit". -if git-rev-parse --verify HEAD >/dev/null 2>&1 +if git rev-parse --verify HEAD >/dev/null 2>&1 then against=HEAD else -- cgit v1.3