sh has a less extensive syntax which yields errors on ubuntu - use bash instead
Empty git tree hash can replace initial commit hash by git conventions
Use correct git pre-commit hook template