123456#!/bin/sh -euhooks="$(git rev-parse --git-path hooks)"for hook in "$hooks"/pre-commit.d/*; do sh "$hook"done