chiark / gitweb /
pre-commit: fix multiple file issue
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 15 Feb 2016 12:01:43 +0000 (12:01 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 15 Feb 2016 12:04:34 +0000 (12:04 +0000)
commit437d06c51e074aa0181c1121b5c774dae996c929
treedfeac07bc8d2c93199a1e04d48439aca2817cee6
parent9800ed1a1aaa3953b2484e4337b2a7b78922b020
pre-commit: fix multiple file issue

When using -z, you should always quote. If not, stuff like this happens:

.git/hooks/pre-commit: line 10: [: too many arguments
hooks/pre-commit