From 4a21d13db4acb112bf210ab6febeed3269b28483 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 26 Oct 2007 12:48:41 +0200 Subject: [PATCH] hooks-pre-commit: use \t, rather than a literal TAB in regexp Signed-off-by: Jim Meyering Signed-off-by: Junio C Hamano --- templates/hooks--pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}/) { -- 2.30.2