Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2011-10-22 21:44:40 +0400
committerJunio C Hamano <gitster@pobox.com>2011-10-27 01:31:14 +0400
commitc14daa4845ff2ec0d27807fa50f9fac1ca4d6462 (patch)
tree5c20ec99da60e81b4ddfb085441433679e3800cb /Documentation/git-update-index.txt
parentc4c42f2cbd2eb14871881cc0d27412b477f699a7 (diff)
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>
Diffstat (limited to 'Documentation/git-update-index.txt')
0 files changed, 0 insertions, 0 deletions