Browse Source

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>
maint
Jim Meyering 18 years ago committed by Junio C Hamano
parent
commit
4a21d13db4
  1. 2
      templates/hooks--pre-commit

2
templates/hooks--pre-commit

@ -58,7 +58,7 @@ perl -e ' @@ -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}/) {

Loading…
Cancel
Save