diff options
author | Jim Meyering <jim@meyering.net> | 2007-10-26 12:48:41 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-10-26 23:16:51 -0700 |
commit | 4a21d13db4acb112bf210ab6febeed3269b28483 (patch) | |
tree | dce27907a8f40150e1b6918ca43022ae705160cf /templates | |
parent | fast-import.c: fix regression due to strbuf conversion (diff) | |
download | tgif-4a21d13db4acb112bf210ab6febeed3269b28483.tar.xz |
hooks-pre-commit: use \t, rather than a literal TAB in regexp
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/hooks--pre-commit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/hooks--pre-commit b/templates/hooks--pre-commit index 18b87309f6..a19279b3e4 100644 --- a/templates/hooks--pre-commit +++ b/templates/hooks--pre-commit @@ -58,7 +58,7 @@ perl -e ' if (/\s$/) { bad_line("trailing whitespace", $_); } - if (/^\s* /) { + if (/^\s* \t/) { bad_line("indent SP followed by a TAB", $_); } if (/^(?:[<>=]){7}/) { |