Skip to content

Commit 4a21d13

Browse files
meyeringgitster
authored andcommitted
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>
1 parent c2e6b6d commit 4a21d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/hooks--pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ perl -e '
5858
if (/\s$/) {
5959
bad_line("trailing whitespace", $_);
6060
}
61-
if (/^\s* /) {
61+
if (/^\s* \t/) {
6262
bad_line("indent SP followed by a TAB", $_);
6363
}
6464
if (/^(?:[<>=]){7}/) {

0 commit comments

Comments
 (0)