1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-15 21:53:44 +01:00
git/templates
Jim Meyering c14daa4845 make the sample pre-commit hook script reject names with newlines, too
The sample pre-commit hook script would fail to reject a file name like
"a\nb" because of the way newlines are handled in "$(...)".  Adjust the
test to count filtered bytes and require there be 0.  Also print all
diagnostics to standard error, not stdout, so they will actually be seen.

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-10-26 14:31:14 -07:00
..
.gitignore
branches--
hooks--applypatch-msg.sample
hooks--commit-msg.sample
hooks--post-commit.sample
hooks--post-receive.sample
hooks--post-update.sample
hooks--pre-applypatch.sample
hooks--pre-commit.sample make the sample pre-commit hook script reject names with newlines, too 2011-10-26 14:31:14 -07:00
hooks--pre-rebase.sample
hooks--prepare-commit-msg.sample
hooks--update.sample
info--exclude
Makefile
this--description