Skip to content
MartinMartimeo edited this page Jun 22, 2011 · 4 revisions

Datei: .git/hooks/pre-commit

#!/bin/sh
echo "- Checking if make is running"
make --silent --quiet
if [ $? -eq 0 ]
then
        echo "[OK]"
        exit 0
fi
echo "[!!!] Please verfiy your commit that it is makeable"
exit 3

chmod +x .git/hooks/pre-commit

Clone this wiki locally