hooks/pre-commit: stop using cat_file -i