aboutsummaryrefslogtreecommitdiffstats
path: root/git-tools/hooks
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-04-03 21:53:09 +0200
committerIgor Wiedler <igor@wiedler.ch>2010-04-03 21:53:09 +0200
commit8091e3166630c70310908668c4d35d1d8d948e0f (patch)
tree968def6c074efa9ba9beee9b01e633810922bf83 /git-tools/hooks
parente3ebdbd79baa31b64ab724a76c2b80e907f3b367 (diff)
downloadforums-8091e3166630c70310908668c4d35d1d8d948e0f.tar
forums-8091e3166630c70310908668c4d35d1d8d948e0f.tar.gz
forums-8091e3166630c70310908668c4d35d1d8d948e0f.tar.bz2
forums-8091e3166630c70310908668c4d35d1d8d948e0f.tar.xz
forums-8091e3166630c70310908668c4d35d1d8d948e0f.zip
[git-tools] do not display stderr
Diffstat (limited to 'git-tools/hooks')
-rwxr-xr-xgit-tools/hooks/pre-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-tools/hooks/pre-commit b/git-tools/hooks/pre-commit
index 151c604c30..c8d78ed490 100755
--- a/git-tools/hooks/pre-commit
+++ b/git-tools/hooks/pre-commit
@@ -53,7 +53,7 @@ do
# check the staged file content for syntax errors
# using php -l (lint)
- result=$(git cat-file -p $sha | /usr/bin/env $PHP_BIN -l)
+ result=$(git cat-file -p $sha | /usr/bin/env $PHP_BIN -l 2>/dev/null)
if [ $? -ne 0 ]
then
error=1