@matheusbsbs / matheus-bagliano / commits / 4a21d13db4
Fork 0

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>

Jim Meyering committed Oct 26, 2007 at 12:48 UTC 4a21d13db4acb112bf210ab6febeed3269b28483
1 file changed +1 -1
templates/hooks--pre-commit
+1 -1
@@ -58,7 +58,7 @@ perl -e '
58 if (/\s$/) {
59 bad_line("trailing whitespace", $_);
60 }
61 - if (/^\s* /) {
61 + if (/^\s* \t/) {
62 bad_line("indent SP followed by a TAB", $_);
63 }
64 if (/^(?:[<>=]){7}/) {