From: Jim Meyering Date: Fri, 26 Oct 2007 10:48:41 +0000 (+0200) Subject: hooks-pre-commit: use \t, rather than a literal TAB in regexp X-Git-Tag: v1.5.4-rc0~323 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4a21d13db4acb112bf210ab6febeed3269b28483;p=git.git hooks-pre-commit: use \t, rather than a literal TAB in regexp Signed-off-by: Jim Meyering Signed-off-by: Junio C Hamano --- diff --git a/templates/hooks--pre-commit b/templates/hooks--pre-commit index 18b87309f..a19279b3e 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}/) {