diff options
author | Jim Meyering <jim@meyering.net> | 2007-10-26 12:48:41 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-10-26 23:16:51 -0700 |
commit | 4a21d13db4acb112bf210ab6febeed3269b28483 (patch) | |
tree | dce27907a8f40150e1b6918ca43022ae705160cf | |
parent | c2e6b6d0d1e97c5bc2db24388e247bef62faf917 (diff) | |
download | git-4a21d13db4acb112bf210ab6febeed3269b28483.tar.gz git-4a21d13db4acb112bf210ab6febeed3269b28483.tar.xz |
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>
-rw-r--r-- | templates/hooks--pre-commit | 2 |
1 files changed, 1 insertions, 1 deletions
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}/) { |