summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-10-26 10:48:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-10-27 06:16:51 (GMT)
commit4a21d13db4acb112bf210ab6febeed3269b28483 (patch)
treedce27907a8f40150e1b6918ca43022ae705160cf /templates
parentc2e6b6d0d1e97c5bc2db24388e247bef62faf917 (diff)
downloadgit-4a21d13db4acb112bf210ab6febeed3269b28483.zip
git-4a21d13db4acb112bf210ab6febeed3269b28483.tar.gz
git-4a21d13db4acb112bf210ab6febeed3269b28483.tar.bz2
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>
Diffstat (limited to 'templates')
-rw-r--r--templates/hooks--pre-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/hooks--pre-commit b/templates/hooks--pre-commit
index 18b8730..a19279b 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}/) {