tools/pre-commit should be copied to .git/hooks/pre-commit to take effect. Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>