diff options
author | Igor Wiedler <igor@wiedler.ch> | 2010-04-03 21:53:09 +0200 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2010-04-03 21:53:09 +0200 |
commit | 8091e3166630c70310908668c4d35d1d8d948e0f (patch) | |
tree | 968def6c074efa9ba9beee9b01e633810922bf83 /git-tools | |
parent | e3ebdbd79baa31b64ab724a76c2b80e907f3b367 (diff) | |
download | forums-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')
-rwxr-xr-x | git-tools/hooks/pre-commit | 2 |
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 |