diff options
author | Ben Walton <bwalton@artsci.utoronto.ca> | 2010-03-20 10:48:09 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-20 09:04:38 -0700 |
commit | 100e762a60a691a4978434f1cd5532e19cad39fc (patch) | |
tree | 6aa87c5094603e53468f9add2dc595693d5b63ee /templates/hooks--pre-commit.sample | |
parent | 502be959531b34e2d9283213b7bca51842639240 (diff) | |
download | git-100e762a60a691a4978434f1cd5532e19cad39fc.tar.gz git-100e762a60a691a4978434f1cd5532e19cad39fc.tar.xz |
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 <bwalton@artsci.utoronto.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'templates/hooks--pre-commit.sample')
-rwxr-xr-x | templates/hooks--pre-commit.sample | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/hooks--pre-commit.sample b/templates/hooks--pre-commit.sample index 439eefda5..b187c4bb1 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 |