sample pre-commit hook: use --bool when retrieving config var
authorJohan Herland <johan@herland.net>
Tue, 24 Sep 2013 07:52:56 +0000 (09:52 +0200)
committerJonathan Nieder <jrnieder@gmail.com>
Tue, 24 Sep 2013 19:26:49 +0000 (12:26 -0700)
Currently if you set

[hooks]
allowNonAscii

(or allownonascii = 1, or = yes) in your .git/config then the sample
pre-commit misinterprets the value as "false" and rejects non-ASCII
filenames. Use "git config --bool" to get the usual nicer boolean
handling.

Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
No differences found