{"thread":{"id":"34975","subject":"[PATCH] sample pre-commit hook: Use --bool when retrieving config var","startedAt":"2013-09-20T13:53:50Z","lastAt":"2013-09-20T13:53:50Z","messageCount":1,"participants":["Johan Herland"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"227937","messageId":"1379685230-30239-1-git-send-email-johan@herland.net","threadId":"34975","inReplyTo":null,"subject":"[PATCH] sample pre-commit hook: Use --bool when retrieving config var","fromName":"Johan Herland","fromEmail":"johan@herland.net","sentAt":"2013-09-20T13:53:50Z","receivedAt":"2013-09-20T13:53:50Z","isPatch":true,"sender":{"key":"johan@herland.net","avatar":"https://avatars.githubusercontent.com/u/547031?v=4"},"body":"Signed-off-by: Johan Herland <johan@herland.net>\n---\n templates/hooks--pre-commit.sample | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/templates/hooks--pre-commit.sample b/templates/hooks--pre-commit.sample\nindex 586e3bf..68d62d5 100755\n--- a/templates/hooks--pre-commit.sample\n+++ b/templates/hooks--pre-commit.sample\n@@ -16,7 +16,7 @@ else\n fi\n \n # If you want to allow non-ASCII filenames set this variable to true.\n-allownonascii=$(git config hooks.allownonascii)\n+allownonascii=$(git config --bool hooks.allownonascii)\n \n # Redirect output to stderr.\n exec 1>&2\n-- \n1.8.1.rc2.269.g5aaac94\n"}]}