Skip to content

Commit

Permalink
hooks-pre-commit: use \t, rather than a literal TAB in regexp
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jim Meyering authored and Junio C Hamano committed Oct 27, 2007
1 parent c2e6b6d commit 4a21d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/hooks--pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -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}/) {
Expand Down

0 comments on commit 4a21d13

Please sign in to comment.