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: https://git.lorimer.id.au/gitweb.git/diff_plain/4a21d13db4acb112bf210ab6febeed3269b28483?hp=c2e6b6d0d1e97c5bc2db24388e247bef62faf917 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 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}/) {